https://github.com/happypathway/centralized-actions
https://github.com/happypathway/centralized-actions
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/happypathway/centralized-actions
- Owner: HappyPathway
- Created: 2024-08-21T21:29:51.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-20T06:20:48.000Z (over 1 year ago)
- Last Synced: 2025-02-25T15:41:49.384Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 222 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# centralized-actions
## terraform-test:
```yaml
name: "Gtag"
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
terraform:
uses: HappyPathway/centralized-actions/.github/workflows/terraform-test.yml@main
with:
terraform_version: ${{vars.TERRAFORM_VERSION}}
terraform_api: ${{vars.TERRAFORM_API}}
terraform_init: true
github_username: ${{vars.GH_USERNAME}}
github_email: ${{vars.GH_EMAIL}}
github_org: ${{ vars.GH_ORG }}
download_cache: false
secrets:
TFE_TOKEN: ${{ secrets.TFE_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
gtag:
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
needs: terraform
uses: HappyPathway/centralized-actions/.github/workflows/gtag.yml@main
with:
patch: true
github_org: ${{ vars.GH_ORG }}
github_username: ${{ vars.GH_USERNAME }}
github_email: ${{ vars.GH_EMAIL }}
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
```
## modtest
```yaml
name: "ModTest"
on:
pull_request:
branches:
- main
jobs:
modtest:
uses: HappyPathway/centralized-actions/.github/workflows/modtest.yml@main
with:
workspace: github-repos
github_server: github.com
github_org: ${{ github.repository_owner }}
mod_source: repo/github
branch: ${{ github.head_ref }}
terraform_version: 1.9.1
secrets:
TFE_TOKEN: ${{ secrets.TFE_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
```