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 2
2
name : 📦 Packaging
3
3
4
4
on :
5
+ pull_request :
5
6
push :
6
7
branches :
7
8
- main
70
71
71
72
timeout-minutes : 2
72
73
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
+
73
79
steps :
74
80
- uses : actions/checkout@v4
75
81
with :
@@ -114,7 +120,7 @@ jobs:
114
120
- build
115
121
if : >-
116
122
github.event.action == 'published'
117
- && env.UPSTREAM_REPOSITORY_ID == github.repository_id
123
+ && needs.build.outputs.upstream-repository-id == github.repository_id
118
124
119
125
runs-on : ubuntu-latest
120
126
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