diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 47d1d9c..54350f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,16 +48,6 @@ jobs: repository: ${{ inputs.repo }}/reva path: reva ref: ${{ inputs.branch }} - - name: Bump version in spec file - run: | - export GOPATH=$(pwd)/go - export PATH=$PATH:$GOPATH/bin - cd reva - export REVAVER="Reva commit $(git rev-parse --short HEAD) at ${{ inputs.repo }}/${{ inputs.branch }}" - cd ../reva-release - go run prepare_release.go -author "cernbox-admins[bot]" -email "cernbox-admins@cern.ch" -reva-version "$REVAVER" - echo "version=$(awk '$1 == "Version:" {print $2}' cernbox-revad.spec)" >> $GITHUB_ENV - echo "Reva version is "\""$REVAVER"\" - name: Copy necessary files for building the RPMs run: | cp reva-release/Makefile reva/Makefile.rpm @@ -97,9 +87,12 @@ jobs: run: | export GOPATH=$(pwd)/go export PATH=$PATH:$GOPATH/bin - cd reva-release - go run prepare_release.go -author "cernbox-admins[bot]" -email "cernbox-admins@cern.ch" + cd reva + export REVAVER="Reva commit $(git rev-parse --short HEAD) at ${{ inputs.repo }}/${{ inputs.branch }}" + cd ../reva-release + go run prepare_release.go -author "cernbox-admins[bot]" -email "cernbox-admins@cern.ch" -reva-version "$REVAVER" echo "version=$(awk '$1 == "Version:" {print $2}' cernbox-revad.spec)" >> $GITHUB_ENV + echo "Reva version is "\""$REVAVER"\" - name: Push version uses: stefanzweifel/git-auto-commit-action@v4 with: