Fix workflow (#1816)

This commit is contained in:
NonPIayerCharacter 2025-09-29 10:24:06 +03:00 committed by GitHub
parent cd17fbf7f5
commit bbbf490011
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,16 +23,6 @@ jobs:
steps:
- name: Source checkout
uses: actions/checkout@v4
- name: Set outputs
id: refs
run: |
export BRANCH=${GITHUB_REF#refs/*/}
echo "branch: ${BRANCH}"
export BRANCHTRANSLATED=$(echo ${BRANCH} | tr '/' '_')
echo "short_ref: ${BRANCHTRANSLATED}"
export VERSION=${BRANCHTRANSLATED}_$(git rev-parse --short=12 HEAD)
echo "short_ref=${BRANCHTRANSLATED}" >> $GITHUB_OUTPUT
echo "sha_short=SHA-$(git rev-parse --short=12 HEAD)" >> $GITHUB_OUTPUT
- name: Semantic Release
id: semantic
if: github.ref == 'refs/heads/main' || github.ref_name == 'alpha'
@ -46,19 +36,22 @@ jobs:
conventional-changelog-conventionalcommits@7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set release outputs
id: refs_release
if: github.ref == 'refs/heads/main' || github.ref_name == 'alpha'
- name: Set outputs
id: refs
run: |
export BRANCH=${GITHUB_REF#refs/*/}
echo "branch: ${BRANCH}"
export BRANCHTRANSLATED=$(echo ${BRANCH} | tr '/' '_')
echo "short_ref: ${BRANCHTRANSLATED}"
export VERSION=""
if ${{ steps.semantic.outputs.new_release_published == 'true' }}; then
export VERSION=${{ steps.semantic.outputs.new_release_version }}
else
export VERSION=${BRANCHTRANSLATED}_$(git rev-parse --short=12 HEAD)
fi
echo "new_release=${{ steps.semantic.outputs.new_release_published }}" >> $GITHUB_OUTPUT
- name: Set version
id: refs_version
run: |
echo "short_ref=${BRANCHTRANSLATED}" >> $GITHUB_OUTPUT
echo "sha_short=SHA-$(git rev-parse --short=12 HEAD)" >> $GITHUB_OUTPUT
echo "version=${VERSION}" >> $GITHUB_OUTPUT
build2: