From cc574b5ef75c8527b3b505e708164275f0e8e2f5 Mon Sep 17 00:00:00 2001 From: Chris Harrison <36608309+chris3ware@users.noreply.github.com> Date: Tue, 25 Feb 2025 19:56:34 +0000 Subject: [PATCH 1/4] feat(checks): Add workflow_call event to wait-for-checks workflow (#156) --- .github/workflows/delete-workflow-run.yaml | 1 - .github/workflows/terraform-docs.yaml | 1 - .github/workflows/wait-for-checks.yaml | 4 ++++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/delete-workflow-run.yaml b/.github/workflows/delete-workflow-run.yaml index 3555976..1aca6fd 100644 --- a/.github/workflows/delete-workflow-run.yaml +++ b/.github/workflows/delete-workflow-run.yaml @@ -2,7 +2,6 @@ name: Delete old workflow runs on: schedule: - cron: 0 0 1 * * - workflow_call: {} # Disable permissions for all available scopes permissions: {} diff --git a/.github/workflows/terraform-docs.yaml b/.github/workflows/terraform-docs.yaml index 5d904b1..4fbc3b3 100644 --- a/.github/workflows/terraform-docs.yaml +++ b/.github/workflows/terraform-docs.yaml @@ -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 diff --git a/.github/workflows/wait-for-checks.yaml b/.github/workflows/wait-for-checks.yaml index 19192af..aeaf205 100644 --- a/.github/workflows/wait-for-checks.yaml +++ b/.github/workflows/wait-for-checks.yaml @@ -4,6 +4,7 @@ on: pull_request: types: [opened, edited, reopened, synchronize] branches: [main] + workflow_call: {} # Disable permissions for all available scopes permissions: {} @@ -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. From 37f05222a05a0d46fa5f97a681c03fcd2b9acf5c Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 25 Feb 2025 19:57:11 +0000 Subject: [PATCH 2/4] chore(release): version 4.9.0 [skip ci] ## [4.9.0](https://github.com/3ware/workflows/compare/v4.8.0...v4.9.0) (2025-02-25) ### Features * **checks:** Add workflow_call event to wait-for-checks workflow ([#156](https://github.com/3ware/workflows/issues/156)) ([cc574b5](https://github.com/3ware/workflows/commit/cc574b5ef75c8527b3b505e708164275f0e8e2f5)) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb61b29..d41857d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. +## [4.9.0](https://github.com/3ware/workflows/compare/v4.8.0...v4.9.0) (2025-02-25) + + +### Features + +* **checks:** Add workflow_call event to wait-for-checks workflow ([#156](https://github.com/3ware/workflows/issues/156)) ([cc574b5](https://github.com/3ware/workflows/commit/cc574b5ef75c8527b3b505e708164275f0e8e2f5)) + ## [4.8.0](https://github.com/3ware/workflows/compare/v4.7.6...v4.8.0) (2025-02-24) From 6865d404241f5951c693f390ea7b08943a6bb758 Mon Sep 17 00:00:00 2001 From: Chris Harrison <36608309+chris3ware@users.noreply.github.com> Date: Tue, 25 Feb 2025 20:13:26 +0000 Subject: [PATCH 3/4] feat(trunk): Add `workflow_call` trigger (#155) --- .github/workflows/trunk-upgrade.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/trunk-upgrade.yaml b/.github/workflows/trunk-upgrade.yaml index 7a226e2..c8ae693 100644 --- a/.github/workflows/trunk-upgrade.yaml +++ b/.github/workflows/trunk-upgrade.yaml @@ -2,6 +2,7 @@ name: Trunk Upgrade on: schedule: - cron: 0 1 * * 2 + workflow_call: {} workflow_dispatch: {} permissions: {} @@ -41,4 +42,4 @@ jobs: uses: trunk-io/trunk-action/upgrade@8e4c812061ece3fa253bbfa5a80ee1caefa19eb1 # v1.22.9 with: github-token: ${{ steps.decrypt-token.outputs.temp-token }} - prefix: "ci(trunk):" + prefix: "ci(trunk): " From 970f2d6c86848bdd6f8eb020619232e767b93e0e Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 25 Feb 2025 20:14:04 +0000 Subject: [PATCH 4/4] chore(release): version 4.10.0 [skip ci] ## [4.10.0](https://github.com/3ware/workflows/compare/v4.9.0...v4.10.0) (2025-02-25) ### Features * **trunk:** Add `workflow_call` trigger ([#155](https://github.com/3ware/workflows/issues/155)) ([6865d40](https://github.com/3ware/workflows/commit/6865d404241f5951c693f390ea7b08943a6bb758)) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d41857d..bd8d664 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. +## [4.10.0](https://github.com/3ware/workflows/compare/v4.9.0...v4.10.0) (2025-02-25) + + +### Features + +* **trunk:** Add `workflow_call` trigger ([#155](https://github.com/3ware/workflows/issues/155)) ([6865d40](https://github.com/3ware/workflows/commit/6865d404241f5951c693f390ea7b08943a6bb758)) + ## [4.9.0](https://github.com/3ware/workflows/compare/v4.8.0...v4.9.0) (2025-02-25)