Commit 469894f 1 parent 822fafd commit 469894f Copy full SHA for 469894f
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
check_blueprints :
8
8
runs-on : ubuntu-latest
9
9
10
+ env :
11
+ GITHUB_BRANCH : ${{ github.ref }}
12
+
10
13
steps :
11
14
- name : Checkout code
12
15
uses : actions/checkout@v2
13
- with :
14
- ref : ${{ github.ref }}
15
- fetch-depth : 0
16
16
17
17
- name : Fetch trunk
18
18
run : |
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def validate_blueprints():
49
49
50
50
# Check if the URLs all point to raw.githubusercontent.com/adamziel/blueprints/{CURRENT BRANCH}
51
51
urls_valid = True
52
- current_branch = os .popen ('git rev-parse --abbrev-ref HEAD' ).read ().strip ()
52
+ current_branch = os .environ . get ( 'GITHUB_BRANCH' ) or os . popen ('git rev-parse --abbrev-ref HEAD' ).read ().strip ()
53
53
for url in urls :
54
54
if not url .startswith ('https://' ) and not url .startswith ('http://' ):
55
55
continue
You can’t perform that action at this time.
0 commit comments