diff --git a/.github/workflows/update-version-number.yaml b/.github/workflows/update-version-number.yaml index 2e520702..4774db4e 100644 --- a/.github/workflows/update-version-number.yaml +++ b/.github/workflows/update-version-number.yaml @@ -53,12 +53,15 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Work out the image tags + - name: Work out the image tags, version and revision id: tags env: REF: ${{ github.ref_name }} IMAGE: ghcr.io/${{ github.repository_owner }}/fedifetcher run: | + echo "version=${REF#v}" >> "$GITHUB_OUTPUT" + # not github.sha: `run` may have moved the tag onto its version bump commit + echo "revision=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" { echo "tags<