From 37abfdd08698f74da9aade10268e5c6e41a1423d Mon Sep 17 00:00:00 2001 From: Dorian Stoll Date: Tue, 4 Feb 2020 19:14:03 +0100 Subject: [PATCH] Fix generating the repo for Fedora I swear I can think... Sometimes. Signed-off-by: Dorian Stoll --- .github/workflows/fedora-30.yml | 6 +++--- .github/workflows/fedora-31.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/fedora-30.yml b/.github/workflows/fedora-30.yml index e078990da..58f6514a4 100644 --- a/.github/workflows/fedora-30.yml +++ b/.github/workflows/fedora-30.yml @@ -94,6 +94,9 @@ jobs: GPG_KEY: ${{ secrets.SURFACE_GPG_KEY }} GIT_REF: ${{ github.ref }} run: | + # Parse git tag from ref + GIT_TAG=$(echo $GIT_REF | sed 's|^refs/tags/||g') + for pkg in $(find fedora-30-latest -name '*.rpm'); do echo "$GIT_TAG/$(basename $pkg)" > $pkg.blob done @@ -111,9 +114,6 @@ jobs: fi gpg --detach-sign --batch --no-tty --armor -u $GPG_KEY_ID repodata/repomd.xml - # Parse git tag from ref - GIT_TAG=$(echo $GIT_REF | sed 's|^refs/tags/||g') - - name: Commit and push uses: github-actions-x/commit@v2.3 with: diff --git a/.github/workflows/fedora-31.yml b/.github/workflows/fedora-31.yml index e90a2d09e..d657a1a89 100644 --- a/.github/workflows/fedora-31.yml +++ b/.github/workflows/fedora-31.yml @@ -94,6 +94,9 @@ jobs: GPG_KEY: ${{ secrets.SURFACE_GPG_KEY }} GIT_REF: ${{ github.ref }} run: | + # Parse git tag from ref + GIT_TAG=$(echo $GIT_REF | sed 's|^refs/tags/||g') + for pkg in $(find fedora-31-latest -name '*.rpm'); do echo "$GIT_TAG/$(basename $pkg)" > $pkg.blob done @@ -111,9 +114,6 @@ jobs: fi gpg --detach-sign --batch --no-tty --armor -u $GPG_KEY_ID repodata/repomd.xml - # Parse git tag from ref - GIT_TAG=$(echo $GIT_REF | sed 's|^refs/tags/||g') - - name: Commit and push uses: github-actions-x/commit@v2.3 with: