Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit c158ba2

Browse files
authored
Update js-api-build.yml (#1358)
1 parent 445a369 commit c158ba2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/js-api-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- cron: '0 3 * * *' # nightly
1313
env:
1414
GITHUB_REPO_SLUG: ${{ github.repository }}
15-
GITHUB_BRANCH: ${{ github.head_ref }}
15+
GITHUB_BRANCH: ${{ github.ref }}
1616
GITHUB_PULL_REQUEST: ${{ github.event.number }}
1717
GITHUB_BUILD_NUMBER: ${{ github.run_number }}
1818
NPM_REGISTRY_TOKEN: ${{ github.NPM_REGISTRY_TOKEN }}
@@ -82,7 +82,7 @@ jobs:
8282
needs: test
8383
name: release
8484
runs-on: ubuntu-latest
85-
if: github.head_ref == 'refs/heads/master' || github.head_ref == 'refs/heads/develop' || github.event.schedule == '0 3 * * *'
85+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || github.event.schedule == '0 3 * * *'
8686
steps:
8787
- name: Checkout
8888
uses: actions/checkout@v3.0.0
@@ -97,14 +97,14 @@ jobs:
9797
- run: npm ci
9898

9999
- name: Release
100-
if: github.head_ref == 'refs/heads/master' || github.head_ref == 'refs/heads/develop'
100+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'
101101
shell: bash
102102
run: |
103103
./scripts/build.sh || exit 1
104104
./scripts/publish.sh
105105
106106
- name: Release Tag
107-
if: github.head_ref == 'refs/heads/master'
107+
if: github.ref == 'refs/heads/master'
108108
shell: bash
109109
run: |
110110
./scripts/git-tag.sh
@@ -116,6 +116,6 @@ jobs:
116116

117117
- name: Trigger ADF master
118118
shell: bash
119-
if: github.head_ref == 'refs/heads/master'
119+
if: github.ref == 'refs/heads/master'
120120
run: ./scripts/update-project.sh -p ${{ github.run_number }} -t ${{ secrets.GITHUB_TOKEN }} -v latest
121121

0 commit comments

Comments
 (0)