Skip to content

Commit

Permalink
feat(checks): Add workflow_call event to wait-for-checks workflow (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris3ware authored Feb 25, 2025
1 parent b6217ad commit cc574b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/delete-workflow-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Delete old workflow runs
on:
schedule:
- cron: 0 0 1 * *
workflow_call: {}

# Disable permissions for all available scopes
permissions: {}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/terraform-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
needs: [get-temp-token]
env:
TF_DOCS_FILE: README.md
# TODO: Define as an input, because calling workflow could use a different event type
BRANCH: ${{ github.base_ref }}
steps:
- name: Decrypt the installation access token
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/wait-for-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
types: [opened, edited, reopened, synchronize]
branches: [main]
workflow_call: {}

# Disable permissions for all available scopes
permissions: {}
Expand All @@ -26,6 +27,9 @@ jobs:
# check run "auto-approve-pr" is completed with conclusion "cancelled" (unsuccessful) when skipped
# auto-approve-pr should run on the conclusion of enforce-all-checks, so checks should not check for auto-approve-pr
ignore: auto-approve-pr
# ignore any pattern before '/ enforce-all-checks' for calling workflows
# For example if the calling workflow job name is 'Checks' the path to ignore is 'Checks / enforce-all-checks'
ignore_pattern: .*\/ enforce-all-checks

# Approve PR raised by 3ware-release[bot] to upgrade trunk on trunk branches
# after all checks have passed.
Expand Down

0 comments on commit cc574b5

Please sign in to comment.