Glue Job Sync #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Glue Job Sync" | |
on: | |
schedule: | |
- cron: "15 4 * * *" # Daily at 4:15am UTC | |
workflow_dispatch: | |
env: | |
AWS_REGION: ca-central-1 | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
jobs: | |
glue-job-sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Configure AWS credentials using OIDC | |
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | |
with: | |
role-to-assume: arn:aws:iam::739275439843:role/data-lake-apply | |
role-session-name: TFApply | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Create PR if changes | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: ./.github/workflows/scripts/sync-glue-jobs.sh |