mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2025-10-30 03:54:40 +00:00
Fix workflow (#1816)
This commit is contained in:
parent
cd17fbf7f5
commit
bbbf490011
25
.github/workflows/workflow.yaml
vendored
25
.github/workflows/workflow.yaml
vendored
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user