This repository was archived by the owner on Jun 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 12
12
- cron : ' 0 3 * * *' # nightly
13
13
env :
14
14
GITHUB_REPO_SLUG : ${{ github.repository }}
15
- GITHUB_BRANCH : ${{ github.head_ref }}
15
+ GITHUB_BRANCH : ${{ github.ref }}
16
16
GITHUB_PULL_REQUEST : ${{ github.event.number }}
17
17
GITHUB_BUILD_NUMBER : ${{ github.run_number }}
18
18
NPM_REGISTRY_TOKEN : ${{ github.NPM_REGISTRY_TOKEN }}
82
82
needs : test
83
83
name : release
84
84
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 * * *'
86
86
steps :
87
87
- name : Checkout
88
88
uses : actions/checkout@v3.0.0
@@ -97,14 +97,14 @@ jobs:
97
97
- run : npm ci
98
98
99
99
- 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'
101
101
shell : bash
102
102
run : |
103
103
./scripts/build.sh || exit 1
104
104
./scripts/publish.sh
105
105
106
106
- name : Release Tag
107
- if : github.head_ref == 'refs/heads/master'
107
+ if : github.ref == 'refs/heads/master'
108
108
shell : bash
109
109
run : |
110
110
./scripts/git-tag.sh
@@ -116,6 +116,6 @@ jobs:
116
116
117
117
- name : Trigger ADF master
118
118
shell : bash
119
- if : github.head_ref == 'refs/heads/master'
119
+ if : github.ref == 'refs/heads/master'
120
120
run : ./scripts/update-project.sh -p ${{ github.run_number }} -t ${{ secrets.GITHUB_TOKEN }} -v latest
121
121
You can’t perform that action at this time.
0 commit comments