Skip to content

Commit

Permalink
fix first job output value.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwq committed Feb 2, 2024
1 parent f91769e commit 1956979
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
runs-on: ubuntu-latest
outputs:
commit_hash: ${{ steps.commit-and-push.outputs.commit_hash }}
commit_hash: ${{ steps.commit-hash.outputs.commit_hash }}
steps:
- name: checkout
uses: actions/checkout@master
Expand All @@ -44,7 +44,6 @@ jobs:
# uses: stefanzweifel/git-auto-commit-action@v4

- name: commit files
id: commit-and-push
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
Expand All @@ -60,7 +59,9 @@ jobs:
force: true

- name: output value
id: commit-hash
run: |
echo "commit_hash=$(git rev-parse HEAD)"
echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 1956979

Please sign in to comment.