diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 1ed5a34..717a71d 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -203,7 +203,8 @@ jobs: esac - name: Publish XBPS to distribution repository - if: github.event.inputs.publish_xbps == 'true' + id: publish-xbps + if: ${{ github.event.inputs.publish_xbps == true || github.event.inputs.publish_xbps == 'true' }} run: | set -euo pipefail VERSION=${{ steps.version.outputs.version }} @@ -217,6 +218,7 @@ jobs: exit 1 fi bash scripts/xbps-publish.sh --publish + echo "xbps_published=true" >> "$GITHUB_OUTPUT" - name: Track format availability id: formats @@ -226,7 +228,7 @@ jobs: DEB_EXISTS=$([ -f "dist/fenris_${VERSION}_amd64.deb" ] && echo "true" || echo "false") RPM_EXISTS=$([ -f "dist/fenris-${VERSION}-1.x86_64.rpm" ] && echo "true" || echo "false") XBPS_EXISTS=$([ -f "fenris-${VERSION}_1.x86_64.xbps" ] && echo "true" || echo "false") - XBPS_PUBLISHED=$([ "${{ github.event.inputs.publish_xbps }}" = "true" ] && echo "true" || echo "false") + XBPS_PUBLISHED=$([ "${{ steps.publish-xbps.outputs.xbps_published }}" = "true" ] && echo "true" || echo "false") echo "deb_available=${DEB_EXISTS}" >> "$GITHUB_OUTPUT" echo "rpm_available=${RPM_EXISTS}" >> "$GITHUB_OUTPUT" echo "xbps_available=${XBPS_EXISTS}" >> "$GITHUB_OUTPUT"