Skip to content

Commit d71a590

Browse files
committed
fix: reject PRs without @esbuild/linux-x64@npm in yarn-project.nix
1 parent a7a1a9c commit d71a590

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/std.yml

+11
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,18 @@ concurrency:
6969
group: std-${{ github.workflow }}-${{ github.ref }}
7070
cancel-in-progress: true
7171
jobs:
72+
check-yarn-project-nix:
73+
runs-on: ubuntu-latest
74+
steps:
75+
- uses: actions/checkout@v4
76+
- run: |
77+
if ! grep -qF '"@esbuild/linux-x64@npm:' yarn-project.nix ; then
78+
echo >&2 'Please, make sure that they ‘yarn-project.nix’ contains “@esbuild/linux-x64@npm” (see your diff).'
79+
exit 1
80+
fi
81+
7282
discover:
83+
needs: check-yarn-project-nix
7384
# Don’t run on PRs from forks (no access to secrets):
7485
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
7586
outputs:

0 commit comments

Comments
 (0)