Use PR-oriented workflows & CI that pushes to Airfold
on
push
: Runs the workflow whenever changes are pushed to the main
branch
pull_request
: Executes the workflow when a pull request is opened or updated for the main branch
workflow_dispatch
: Allows the workflow to be triggered manually from the Actions tab in GitHub
permissions
id-token
: Required for OIDC authenticationcontents
: Allows the workflow to read/write repository contentspull-requests
: Enables the workflow to comment on pull requestsjobs
jobs
: Defines a single job named Plan / Apply
runs-on: ubuntu-latest
: Specifies the environment where the job will run
1. Checkout Repository
DEPLOY_TOKEN
af diff
to compare the current and previous states of the Airfold configurationcontinue-on-error: true
: Prevents failures in this step from stopping the workflowaf push
to simulate changesworkflow_dispatch