Skip to content

Commit

Permalink
Specify ref in build workflow
Browse files Browse the repository at this point in the history
So… when the scrape workflow triggers the build workflow, the build
workflow doesn't check out the latest commit. This appears to be an
issue because it inherits the SHA from the calling workflow.

Since the scrape workflow creates a new comimt, the existing ref is the
next-to-last commit. Some folks figured out a workaround:

actions/checkout#439 (comment)
  • Loading branch information
jgarber623 committed May 27, 2023
1 parent 696e842 commit 5dc3254
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
Expand Down

0 comments on commit 5dc3254

Please sign in to comment.