Skip to content

Commit

Permalink
[update][action] Fix variable defination
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzhao committed Oct 11, 2024
1 parent cb47451 commit e5f045c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
changelog: ${{ steps.changelog.outputs.changelog }}

permissions:
contents: read
packages: write
Expand All @@ -20,10 +24,10 @@ jobs:

- name: version
id: version
run: echo "{version}=$(git describe --tags --abbrev=1)" >> $GITHUB_OUTPUT
run: echo "version=$(git describe --tags --abbrev=1)" >> $GITHUB_OUTPUT
- name: changelog
id: changelog
run: echo "{changelog}=$(git log --oneline)' ${{ github.event.before }}..HEAD)" >> $GITHUB_OUTPUT
run: echo "changelog=$(git log --oneline)' ${{ github.event.before }}..HEAD)" >> $GITHUB_OUTPUT
# - name: 1. Import GPG key
# id: import_gpg
# uses: crazy-max/ghaction-import-gpg@v4
Expand Down

0 comments on commit e5f045c

Please sign in to comment.