File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,14 @@ jobs:
17
17
id : get_tag
18
18
run : echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
19
19
20
- - name : Download repository archive at pushed tag
21
- run : " curl -L https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/archive/refs/tags/${{ steps.get_tag.outputs.TAG }}.tar.gz -o rules_docker-${{ steps.get_tag.outputs.TAG }}.tar.gz"
20
+ - uses : actions/checkout@v3
21
+
22
+ - run : git archive --output=rules_docker-${{ steps.get_tag.outputs.TAG }}.tar.gz ${{ steps.get_tag.outputs.TAG }}
22
23
23
24
- name : Get SHA256 of archive
24
25
id : get_sha
25
26
run : echo "::set-output name=sha::$(sha256sum rules_docker-${{ steps.get_tag.outputs.TAG }}.tar.gz | cut -f 1 -d ' ')"
26
27
27
- - name : Get version
28
- id : get_version
29
- run : |
30
- VERSION=${{ steps.get_tag.outputs.TAG }}
31
- echo "VERSION=${VERSION:1}" >> $GITHUB_ENV
32
-
33
28
- name : Create Release
34
29
uses : softprops/action-gh-release@v1
35
30
with :
39
34
http_archive(
40
35
name = "io_bazel_rules_docker",
41
36
sha256 = "${{ steps.get_sha.outputs.sha }}",
42
- strip_prefix = "rules_docker-${{ env.VERSION }}",
43
37
urls = ["https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/releases/download/${{ steps.get_tag.outputs.TAG }}/rules_docker-${{ steps.get_tag.outputs.TAG }}.tar.gz"],
44
38
)
45
39
```
You can’t perform that action at this time.
0 commit comments