File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,6 +159,26 @@ jobs:
159159 name : Build
160160 if : github.repository_owner == inputs.github_org_owner
161161 container : fedora:latest
162+ environment :
163+ name : >-
164+ ${{
165+ github.event_name == 'release' &&
166+ format('copr-{0}', github.event.action == 'prereleased' && 'beta' || 'stable') ||
167+ null
168+ }}
169+ url : >-
170+ ${{
171+ github.event_name == 'release' &&
172+ format(
173+ 'https://copr.fedorainfracloud.org/coprs/{0}/{1}/builds/{2}',
174+ inputs.copr_ownername,
175+ github.event.action == 'prereleased' && 'beta' || 'stable',
176+ steps.build.outputs.BUILD_ID
177+ ) ||
178+ null
179+ }}
180+ env :
181+ ENV_BASE_URL : https://copr.fedorainfracloud.org/coprs/${{ inputs.copr_ownername }}
162182 needs : package-init
163183 outputs :
164184 BUILD_ID : ${{ steps.build.outputs.BUILD_ID }}
@@ -168,9 +188,9 @@ jobs:
168188 BUILD_SUCCESS : ${{ steps.build.outcome == 'success' }}
169189 CHROOTS : ${{ steps.chroots.outputs.CHROOTS }}
170190 CHROOTS_MATRIX : ${{ steps.chroots.outputs.CHROOTS_MATRIX }}
171- runs-on : ubuntu-latest
172191 permissions :
173192 contents : read
193+ runs-on : ubuntu-latest
174194 steps :
175195 - name : Install dependencies
176196 run : |
@@ -216,7 +236,7 @@ jobs:
216236 echo "COPR_PUSH_WEBHOOK=${COPR_PUSH_WEBHOOK}"
217237 echo "COPR_PR_WEBHOOK=${COPR_PR_WEBHOOK}"
218238
219- # Output BUILD_CHANNEL for other jobs
239+ # Output for other jobs
220240 echo "BUILD_CHANNEL=${BUILD_CHANNEL}" >> "${GITHUB_OUTPUT}"
221241
222242 - name : Build
You can’t perform that action at this time.
0 commit comments