fix(ci): correctly retrieve release name

This commit is contained in:
Luke Tainton 2025-01-02 18:14:44 +00:00
parent c946991eb2
commit 0389ad841b
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -37,8 +37,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# needs: test # needs: test
outputs: outputs:
release_name: ${{ steps.tag_version.outputs.new_tag }} release_name: ${{ steps.get_next_version.outputs.tag }}
success: ${{ steps.set_flag.outputs.success }}
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4.2.2 uses: actions/checkout@v4.2.2
@ -48,17 +47,10 @@ jobs:
- name: Changes since last tag - name: Changes since last tag
id: changes id: changes
run: | 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 git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline >> .changes
cat .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 - name: Check for changes
run: | run: |
if [[ -z $(grep '[^[:space:]]' .changes) ]] ; then if [[ -z $(grep '[^[:space:]]' .changes) ]] ; then
@ -67,10 +59,6 @@ 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 || true
grep -i "fix" .changes >> .changes_fix || true
grep -i "dependencies" .changes >> .changes_dep || true
grep -i "other" .changes >> .changes_other || true
fi fi
- name: Cancel if no changes - name: Cancel if no changes
@ -168,8 +156,8 @@ jobs:
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ vars.PACKAGES_REGISTRY_URL }} registry: ${{ vars.PACKAGES_REGISTRY_URL }}
username: ${{ vars.PACKAGES_REGISTRY_USERNAME }} username: ${{ vars.ACTIONS_USERNAME }}
password: ${{ vars.PACKAGES_REGISTRY_PASSWORD }} password: ${{ secrets.ACTIONS_TOKEN }}
- name: Build Gitea image(s) - name: Build Gitea image(s)
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6