File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 22name : 📦 Packaging
33
44on :
5+ pull_request :
56 push :
67 branches :
78 - main
7071
7172 timeout-minutes : 2
7273
74+ outputs :
75+ # NOTE: These aren't env vars because the `${{ env }}` context is
76+ # NOTE: inaccessible when passing inputs to reusable workflows.
77+ upstream-repository-id : ${{ env.UPSTREAM_REPOSITORY_ID }}
78+
7379 steps :
7480 - uses : actions/checkout@v4
7581 with :
@@ -114,7 +120,7 @@ jobs:
114120 - build
115121 if : >-
116122 github.event.action == 'published'
117- && env.UPSTREAM_REPOSITORY_ID == github.repository_id
123+ && needs.build.outputs.upstream-repository-id == github.repository_id
118124
119125 runs-on : ubuntu-latest
120126
Original file line number Diff line number Diff line change 1+ 2149.packaging.md
You can’t perform that action at this time.
0 commit comments