File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,14 @@ name: Hermetic library generation upon generation config change through pull req
17
17
on :
18
18
pull_request :
19
19
20
+ env :
21
+ HEAD_REF : ${{ github.head_ref }}
22
+ REPO_FULL_NAME : ${{ github.event.pull_request.head.repo.full_name }}
23
+
20
24
jobs :
21
25
library_generation :
22
26
# skip pull requests coming from a forked repository
23
- if : github.event.pull_request.head.repo.full_name == github.repository
27
+ if : github.env.REPO_FULL_NAME == github.repository
24
28
runs-on : ubuntu-latest
25
29
steps :
26
30
- uses : actions/checkout@v4
@@ -30,11 +34,11 @@ jobs:
30
34
- name : Generate changed libraries
31
35
shell : bash
32
36
run : |
33
- set -x
37
+ set -ex
34
38
[ -z "$(git config user.email)" ] && git config --global user.email "[email protected] "
35
39
[ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot"
36
40
bash .github/scripts/hermetic_library_generation.sh \
37
41
--target_branch ${{ github.base_ref }} \
38
- --current_branch ${{ github.head_ref }}
42
+ --current_branch $HEAD_REF
39
43
env :
40
44
GH_TOKEN : ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
You can’t perform that action at this time.
0 commit comments