fix(ci): fix release
This commit is contained in:
parent
389a066529
commit
742ae10e76
@ -49,6 +49,7 @@ jobs:
|
|||||||
name: Create Release
|
name: Create Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# needs: test
|
# needs: test
|
||||||
|
needs: get_latest_tag
|
||||||
outputs:
|
outputs:
|
||||||
release_name: ${{ steps.tag_version.outputs.new_tag }}
|
release_name: ${{ steps.tag_version.outputs.new_tag }}
|
||||||
success: ${{ steps.set_flag.outputs.success }}
|
success: ${{ steps.set_flag.outputs.success }}
|
||||||
@ -61,11 +62,11 @@ jobs:
|
|||||||
id: changes
|
id: changes
|
||||||
run: |
|
run: |
|
||||||
rm -f .changes .changes_feat .changes_fix .changes_dep .changes_other
|
rm -f .changes .changes_feat .changes_fix .changes_dep .changes_other
|
||||||
sh -c 'git log $(git describe -C ${{ gitea.workspace }} --tags --abbrev=0)..HEAD --no-merges --oneline' >> .changes
|
git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline >> .changes
|
||||||
cat .changes
|
cat .changes
|
||||||
|
|
||||||
- name: Upload changelog file
|
- name: Upload changelog file
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: changelog-file
|
name: changelog-file
|
||||||
path: ./.changes
|
path: ./.changes
|
||||||
@ -79,10 +80,10 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "changes=true"
|
echo "changes=true"
|
||||||
echo "changes=true" >> "$GITEA_OUTPUT"
|
echo "changes=true" >> "$GITEA_OUTPUT"
|
||||||
grep -i "feat" .changes >> .changes_feat
|
grep -i "feat" .changes >> .changes_feat || true
|
||||||
grep -i "fix" .changes >> .changes_fix
|
grep -i "fix" .changes >> .changes_fix || true
|
||||||
grep -i "dependencies" .changes >> .changes_dep
|
grep -i "dependencies" .changes >> .changes_dep || true
|
||||||
grep -i "other" .changes >> .changes_other
|
grep -i "other" .changes >> .changes_other || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Cancel if no changes
|
- name: Cancel if no changes
|
||||||
|
Loading…
Reference in New Issue
Block a user