Skip to content

Commit

Permalink
chore(workflow): fix head ref expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli Skeggs committed Aug 6, 2020
1 parent 81b0976 commit f6303dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- run: npm ci
- run: npm run ci --if-present
env:
GITHUB_HEAD_REF: ${{ context.payload.pull_request.head.ref }}
GITHUB_BASE_REF: ${{ github.event.pull_request.base.ref }}

release:
# https://github.community/t/github-actions-does-not-respect-skip-ci/17325/9
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"scripts": {
"ci": "npm run lint && if [ \"$GITHUB_EVENT_NAME\" != push ]; then npm run ci:commitlint; fi",
"ci:commitlint": "HEAD_NAME=\"${GITHUB_HEAD_REF#refs/heads/}\" && commitlint --from \"origin/${HEAD_NAME:-master}\"",
"ci:commitlint": "commitlint --from \"origin/${GITHUB_BASE_REF:-master}\"",
"lint": "prettier -c .",
"start": "nodemon index.js --ignore 'public/vendor/*'",
"inspect": "nodemon --inspect --trace-warnings --ignore 'public/vendor/*' index.js"
Expand Down

0 comments on commit f6303dc

Please sign in to comment.