fix(ci): correctly retrieve release name
This commit is contained in:
parent
c946991eb2
commit
0389ad841b
@ -37,8 +37,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
# needs: test
|
||||
outputs:
|
||||
release_name: ${{ steps.tag_version.outputs.new_tag }}
|
||||
success: ${{ steps.set_flag.outputs.success }}
|
||||
release_name: ${{ steps.get_next_version.outputs.tag }}
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4.2.2
|
||||
@ -48,17 +47,10 @@ jobs:
|
||||
- name: Changes since last tag
|
||||
id: changes
|
||||
run: |
|
||||
rm -f .changes .changes_feat .changes_fix .changes_dep .changes_other
|
||||
rm -f .changes
|
||||
git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline >> .changes
|
||||
cat .changes
|
||||
|
||||
- name: Upload changelog file
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: changelog-file
|
||||
path: ./.changes
|
||||
include-hidden-files: true
|
||||
|
||||
- name: Check for changes
|
||||
run: |
|
||||
if [[ -z $(grep '[^[:space:]]' .changes) ]] ; then
|
||||
@ -67,10 +59,6 @@ jobs:
|
||||
else
|
||||
echo "changes=true"
|
||||
echo "changes=true" >> "$GITEA_OUTPUT"
|
||||
grep -i "feat" .changes >> .changes_feat || true
|
||||
grep -i "fix" .changes >> .changes_fix || true
|
||||
grep -i "dependencies" .changes >> .changes_dep || true
|
||||
grep -i "other" .changes >> .changes_other || true
|
||||
fi
|
||||
|
||||
- name: Cancel if no changes
|
||||
@ -168,8 +156,8 @@ jobs:
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.PACKAGES_REGISTRY_URL }}
|
||||
username: ${{ vars.PACKAGES_REGISTRY_USERNAME }}
|
||||
password: ${{ vars.PACKAGES_REGISTRY_PASSWORD }}
|
||||
username: ${{ vars.ACTIONS_USERNAME }}
|
||||
password: ${{ secrets.ACTIONS_TOKEN }}
|
||||
|
||||
- name: Build Gitea image(s)
|
||||
uses: docker/build-push-action@v6
|
||||
|
Loading…
Reference in New Issue
Block a user