Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 308a9df

Browse files
When a new release is created, trigger an immediate build and publish CI run
GitHub prevents push events from GitHub workflows from automatically triggering other workflows to prevent recursive runs. Manually call the standard build CI workflow so that a new compiler release is immediately published.
1 parent b6709b8 commit 308a9df

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Build CI
33
on:
44
push:
55
branches: [ master ]
6+
workflow_call:
7+
branches: [ master ]
68
pull_request:
79
branches: [ master ]
810
schedule:
@@ -273,7 +275,7 @@ jobs:
273275
publish-packages:
274276
name: Publish Packages
275277
runs-on: ubuntu-latest
276-
if: ${{ github.event_name == 'schedule' || github.event_name == 'push' }}
278+
if: ${{ github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_call' }}
277279
env:
278280
NODE_VERSION: '18.x'
279281
COMPILER_NIGHTLY: ${{ github.event_name == 'schedule' }}

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,5 @@ jobs:
6161
-H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' \
6262
https://api.github.com/repos/google/closure-compiler-npm/releases \
6363
-d '{"tag_name":"v${{ github.event.inputs.COMPILER_VERSION_NUMBER }}.0.0","name":"${{ github.event.inputs.COMPILER_VERSION_NUMBER }}.0.0","body":"Closure-compiler ${{ github.event.inputs.COMPILER_VERSION_NUMBER }} release","draft":false,"prerelease":false,"generate_release_notes":true}'
64+
- name: Trigger Build and Publish
65+
uses: ./.github/workflows/build.yml

0 commit comments

Comments
 (0)