Skip to content

Commit 20d033d

Browse files
[7.4-stable] Skip PushJavaScript Job for PRs without changed bun lock (#3222)
# Backport This will backport the following commits from `main` to `7.4-stable`: - [Merge pull request #3221 from mamhoff/push-javascript-with-external-prs](#3221) <!--- Backport version: 9.5.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) Co-authored-by: Martin Meyerhoff <[email protected]>
1 parent 0f0a9db commit 20d033d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/build_test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,14 @@ jobs:
174174
contents: write
175175
runs-on: ubuntu-22.04
176176
needs: [check_bun_lock, RSpec]
177-
if: github.event_name == 'pull_request'
177+
if: github.event_name == 'pull_request' && needs.check_bun_lock.outputs.bun_lock_changed == 'true'
178178
steps:
179179
- uses: actions/checkout@v4
180180
with:
181181
ref: ${{ github.head_ref }}
182182
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of our personal access token.
183183
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
184184
- uses: actions/download-artifact@v4
185-
if: needs.check_bun_lock.outputs.bun_lock_changed == 'true'
186185
with:
187186
name: javascript-bundles
188187
path: vendor/javascript

0 commit comments

Comments
 (0)