frontend: fix the 500 for racy creation attempts #1923
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Fedora Copr build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
name: Check modified subdirectories | |
outputs: | |
packages: ${{ steps.check_packages.outputs.packages }} | |
steps: | |
- name: Check out proper version of sources | |
uses: actions/checkout@v4 | |
with: | |
# reasonable number of commits in one push? | |
fetch-depth: 50 | |
- id: check_packages | |
name: Detecting changed sub-packages | |
run: | | |
echo "packages<<EOF" >> $GITHUB_OUTPUT | |
./.github/copr-build-helpers/changed-packages "${{ github.event.before }}" "${{ github.event.pull_request.base.sha }}" >> $GITHUB_OUTPUT | |
echo "EOF" >> $GITHUB_OUTPUT | |
build: | |
needs: check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: ${{fromJSON(needs.check.outputs.packages)}} | |
name: RPM package ${{ matrix.package }} | |
steps: | |
- name: Check out proper version of sources | |
uses: actions/checkout@v4 | |
- name: Copr build ${{ matrix.package }} | |
env: | |
COPR_PR_WEBHOOK: https://copr.fedorainfracloud.org/webhooks/custom-dir/@copr/copr-pull-requests:pr:${{github.event.number}}/2a94f455-b4ac-467e-86e2-f4400ecd4450/${{ matrix.package }}/ | |
COPR_PUSH_WEBHOOK: ${{ secrets.COPR_PUSH_WEBHOOK }}/${{ matrix.package }}/ | |
run: | | |
curl https://raw.githubusercontent.com/praiskup/copr-ci-tooling/main/copr-gh-actions-submit > submit | |
bash submit ${{ github.event.pull_request.number }} |