From dc7740d54c526cf963f5ba3dd6280b92c74f76f5 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Thu, 25 Sep 2025 22:50:17 -0400 Subject: [PATCH] feat(ci): add environment --- .github/workflows/copr-ci.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/copr-ci.yml b/.github/workflows/copr-ci.yml index 33a7c10..2fab7dc 100644 --- a/.github/workflows/copr-ci.yml +++ b/.github/workflows/copr-ci.yml @@ -159,6 +159,26 @@ jobs: name: Build if: github.repository_owner == inputs.github_org_owner container: fedora:latest + environment: + name: >- + ${{ + github.event_name == 'release' && + format('copr-{0}', github.event.action == 'prereleased' && 'beta' || 'stable') || + null + }} + url: >- + ${{ + github.event_name == 'release' && + format( + 'https://copr.fedorainfracloud.org/coprs/{0}/{1}/builds/{2}', + inputs.copr_ownername, + github.event.action == 'prereleased' && 'beta' || 'stable', + steps.build.outputs.BUILD_ID + ) || + null + }} + env: + ENV_BASE_URL: https://copr.fedorainfracloud.org/coprs/${{ inputs.copr_ownername }} needs: package-init outputs: BUILD_ID: ${{ steps.build.outputs.BUILD_ID }} @@ -168,9 +188,9 @@ jobs: BUILD_SUCCESS: ${{ steps.build.outcome == 'success' }} CHROOTS: ${{ steps.chroots.outputs.CHROOTS }} CHROOTS_MATRIX: ${{ steps.chroots.outputs.CHROOTS_MATRIX }} - runs-on: ubuntu-latest permissions: contents: read + runs-on: ubuntu-latest steps: - name: Install dependencies run: | @@ -216,7 +236,7 @@ jobs: echo "COPR_PUSH_WEBHOOK=${COPR_PUSH_WEBHOOK}" echo "COPR_PR_WEBHOOK=${COPR_PR_WEBHOOK}" - # Output BUILD_CHANNEL for other jobs + # Output for other jobs echo "BUILD_CHANNEL=${BUILD_CHANNEL}" >> "${GITHUB_OUTPUT}" - name: Build