We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edfb562 commit 044da75Copy full SHA for 044da75
.github/actions/npm/action.yml
@@ -3,12 +3,8 @@ name: npm i
3
runs:
4
using: "composite"
5
steps:
6
- - run: echo "$GITHUB_CONTEXT"
+ - if: ${{ github.ref == 'refs/heads/master' || github.head_ref == 'release-please--branches--master' }}
7
+ run: npm i
8
shell: bash
- env:
9
- GITHUB_CONTEXT: ${{ toJson(github) }}
10
- - run: npm i
11
- shell: bash
12
- if: ${{ contains('refs/heads/master refs/heads/release-please--branches--master', github.ref) }}
13
- - uses: bahmutov/npm-install@v1
14
- if: ${{ !contains('refs/heads/master refs/heads/release-please--branches--master', github.ref) }}
+ - if: ${{ github.ref != 'refs/heads/master' && github.head_ref != 'release-please--branches--master' }}
+ uses: bahmutov/npm-install@v1
0 commit comments