Skip to content

Commit

Permalink
Fix publish job: properly checkout update_hugo_npm_dependencies changes
Browse files Browse the repository at this point in the history
  • Loading branch information
schnerring committed Mar 28, 2023
1 parent 531343f commit 4982acd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
commit_hash: ${{ steps.commit_changes.outputs.commit_hash }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand All @@ -34,6 +36,7 @@ jobs:
run: git status

- name: Commit Changes
id: commit_changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update Hugo npm Dependencies
Expand All @@ -50,6 +53,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
ref: ${{needs.update_hugo_npm_dependencies.outputs.commit_hash}}

- name: Install Node
uses: actions/setup-node@v3
Expand Down

0 comments on commit 4982acd

Please sign in to comment.