Skip to content

Commit e5e9e61

Browse files
committed
Fix GH workflow that builds layers on version tag
1 parent 611587b commit e5e9e61

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
runs-on: ubuntu-18.04
99
steps:
1010
- name: Check out code
11-
if: startsWith(github.ref, 'v')
11+
if: startsWith(github.ref, 'refs/tags/v')
1212
uses: actions/checkout@v1
1313
- name: create release
14-
if: startsWith(github.ref, 'v')
14+
if: startsWith(github.ref, 'refs/tags/v')
1515
id: create_release
1616
uses: actions/create-release@v1
1717
env:
@@ -22,10 +22,10 @@ jobs:
2222
draft: false
2323
prerelease: false
2424
- name: Output Release URL File
25-
if: startsWith(github.ref, 'v')
25+
if: startsWith(github.ref, 'refs/tags/v')
2626
run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt
2727
- name: Save Release URL File for publish
28-
if: startsWith(github.ref, 'v')
28+
if: startsWith(github.ref, 'refs/tags/v')
2929
uses: actions/upload-artifact@v1
3030
with:
3131
name: release_url
@@ -46,18 +46,18 @@ jobs:
4646
- run: ./make_layer.sh ${{ matrix.runtime }}
4747
- run: ./run_tests.sh ${{ matrix.runtime }}
4848
- name: Load Release URL File from release job
49-
if: startsWith(github.ref, 'v')
49+
if: startsWith(github.ref, 'refs/tags/v')
5050
uses: actions/download-artifact@v1
5151
with:
5252
name: release_url
5353
- name: Get Release File Name & Upload URL
54-
if: startsWith(github.ref, 'v')
54+
if: startsWith(github.ref, 'refs/tags/v')
5555
id: get_release_info
5656
run: |
5757
value=`cat release_url/release_url.txt`
5858
echo ::set-output name=upload_url::$value
5959
- name: Upload Release Asset
60-
if: startsWith(github.ref, 'v')
60+
if: startsWith(github.ref, 'refs/tags/v')
6161
id: upload-release-asset
6262
uses: actions/[email protected]
6363
env:

0 commit comments

Comments
 (0)