From 8182d4106a13a7f1dd1f5fc3dbfe7c2bdc45443c Mon Sep 17 00:00:00 2001 From: px Date: Fri, 20 Jun 2025 11:19:28 -0700 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=9A=80=20=F0=9F=94=A7=20=20chore(work?= =?UTF-8?q?flows):=20Simplify=20trigger=20events=20in=20call-prune-release?= =?UTF-8?q?s.yaml=20and=20enhance=20concurrency=20context=20in=20ci-semant?= =?UTF-8?q?ic-release-sync.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/call-prune-releases.yaml | 30 ++----------------- .../workflows/ci-semantic-release-sync.yml | 30 +++++++++++++++++-- 2 files changed, 29 insertions(+), 31 deletions(-) diff --git a/.github/workflows/call-prune-releases.yaml b/.github/workflows/call-prune-releases.yaml index 641e8bb..68efae7 100644 --- a/.github/workflows/call-prune-releases.yaml +++ b/.github/workflows/call-prune-releases.yaml @@ -2,34 +2,8 @@ name: Call Prune Releases on: workflow_dispatch: - - push: - branches: - - main - - stage - - 'feature/**' - - 'bugfix/**' - - 'fix/**' - - 'hotfix/**' - - 'release/**' - - 'dependabot/**' - - 'renovate/**' - - 'chore/**' - - 'test/**' - pull_request: - types: [labeled, synchronize, opened, reopened, ready_for_review] - branches: - - main - - stage - - 'feature/**' - - 'bugfix/**' - - 'fix/**' - - 'hotfix/**' - - 'release/**' - - 'dependabot/**' - - 'renovate/**' - - 'chore/**' - - 'test/**' + release: + types: [published, created] jobs: prune_releases: diff --git a/.github/workflows/ci-semantic-release-sync.yml b/.github/workflows/ci-semantic-release-sync.yml index a851471..349f3af 100644 --- a/.github/workflows/ci-semantic-release-sync.yml +++ b/.github/workflows/ci-semantic-release-sync.yml @@ -64,7 +64,7 @@ on: default: '1' concurrency: - group: ci-release-sync-${{ github.ref }} + group: ci-release-sync-${{ github.ref }}-${{ github.event_name }} cancel-in-progress: true jobs: @@ -123,8 +123,32 @@ jobs: echo "PNPM VERSION: $(pnpm --version)" which pnpm env | grep -E 'PNPM|NPM|NODE|PATH' - - run: pnpm install --frozen-lockfile - - run: | + - name: Install Dependencies + run: pnpm install --frozen-lockfile + - name: Debug GitHub Context + run: | + echo "GITHUB_CONTEXT VARIABLES:" + echo " github.ref: ${{ github.ref }}" + echo " github.ref_name: ${{ github.ref_name }}" + echo " github.repository: ${{ github.repository }}" + echo " github.repository_owner: ${{ github.repository_owner }}" + echo " github.event_name: ${{ github.event_name }}" + echo " github.sha: ${{ github.sha }}" + echo " github.actor: ${{ github.actor }}" + echo " github.workflow: ${{ github.workflow }}" + echo " github.run_id: ${{ github.run_id }}" + echo " github.run_number: ${{ github.run_number }}" + echo " github.head_ref: ${{ github.head_ref }}" + echo " github.base_ref: ${{ github.base_ref }}" + echo " github.job: ${{ github.job }}" + echo " github.workspace: ${{ github.workspace }}" + echo " github.action: ${{ github.action }}" + echo " github.triggering_actor: ${{ github.triggering_actor }}" + echo " github.server_url: ${{ github.server_url }}" + echo " github.api_url: ${{ github.api_url }}" + echo " github.graphql_url: ${{ github.graphql_url }}" + - name: Run Semantic Release or Skip + run: | if [ "${{ inputs.RUN_RELEASE }}" = "1" ]; then pnpm semantic-release else From 6f321161d1d850f3ef90a86fa2e8771caf4fbfe0 Mon Sep 17 00:00:00 2001 From: px Date: Fri, 20 Jun 2025 11:26:27 -0700 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=9A=80=20=F0=9F=94=A7=20fix(workflows?= =?UTF-8?q?):=20Remove=20commented=20GITHUB=5FTOKEN=20line=20for=20cleaner?= =?UTF-8?q?=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-merge.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 24ba67f..8d9aa68 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -36,7 +36,6 @@ jobs: - name: Automerge PR if CI passes uses: pascalgn/automerge-action@v0.16.4 env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} MERGE_METHOD: squash MERGE_LABELS: '' MERGE_FORKS: 'true' From 1c78a57b5275a908c7bab86e592aa12744fcf704 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 20 Jun 2025 18:29:08 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A4=96=20chore(release):=201.2.8=20[s?= =?UTF-8?q?kip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.2.8](https://github.com/variablesoftware/github-workflows/compare/v1.2.7...v1.2.8) (2025-06-20) --- CHANGELOG.md | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b28f38..9d31154 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## [1.2.8](https://github.com/variablesoftware/github-workflows/compare/v1.2.7...v1.2.8) (2025-06-20) + ## [1.2.7](https://github.com/variablesoftware/github-workflows/compare/v1.2.6...v1.2.7) (2025-06-20) ## [1.2.6](https://github.com/variablesoftware/github-workflows/compare/v1.2.5...v1.2.6) (2025-06-20) diff --git a/package.json b/package.json index 675eaa9..68155ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-workflows", - "version": "1.2.7", + "version": "1.2.8", "description": "Reusable GitHub Actions workflows for the organization.", "main": "README.md", "license": "MIT",