|
| 1 | +--- |
| 2 | +######################### |
| 3 | +## Sync template files ## |
| 4 | +######################### |
| 5 | + |
| 6 | +# |
| 7 | +# Documentation: |
| 8 | +# https://help.github.com/en/articles/workflow-syntax-for-github-actions |
| 9 | +# |
| 10 | + |
| 11 | +name: Sync templates |
| 12 | +on: |
| 13 | + workflow_dispatch: # Trigger manually |
| 14 | + schedule: |
| 15 | + - cron: "0 0 1 * *" # Run at 00:00 on the first day of every month |
| 16 | + |
| 17 | +########################## |
| 18 | +# Prevent duplicate jobs # |
| 19 | +########################## |
| 20 | +concurrency: |
| 21 | + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| 22 | + cancel-in-progress: true |
| 23 | + |
| 24 | +############### |
| 25 | +# Run the job # |
| 26 | +############### |
| 27 | +jobs: |
| 28 | + ############### |
| 29 | + # Sync labels # |
| 30 | + ############### |
| 31 | + sync-labels: |
| 32 | + name: Sync labels |
| 33 | + runs-on: ubuntu-latest |
| 34 | + steps: |
| 35 | + ################################## |
| 36 | + # Sync labels with template Repo # |
| 37 | + ################################## |
| 38 | + - name: Sync labels |
| 39 | + |
| 40 | + with: |
| 41 | + config-file: https://gist.githubusercontent.com/Ic3w0lf/f5520c5f19d7098966f692c120f7a197/raw/75b134f76fbc55e2e64bd66f04e571d6d74b815e/terraform-aws-module-labels.yaml |
| 42 | + |
| 43 | + ####################### |
| 44 | + # Sync template files # |
| 45 | + ####################### |
| 46 | + sync-template-files: |
| 47 | + name: Sync template files |
| 48 | + runs-on: ubuntu-latest |
| 49 | + steps: |
| 50 | + ############################ |
| 51 | + # Checkout the source code # |
| 52 | + ############################ |
| 53 | + - name: Checkout Code |
| 54 | + |
| 55 | + |
| 56 | + ####################### |
| 57 | + # Sync template files # |
| 58 | + ####################### |
| 59 | + - name: actions-template-sync |
| 60 | + uses: AndreasAugustin/[email protected] |
| 61 | + with: |
| 62 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 63 | + source_repo_path: geekcell/terraform-aws-module-template |
0 commit comments