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:
1717 id : get_tag
1818 run : echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
1919
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 }}
2223
2324 - name : Get SHA256 of archive
2425 id : get_sha
2526 run : echo "::set-output name=sha::$(sha256sum rules_docker-${{ steps.get_tag.outputs.TAG }}.tar.gz | cut -f 1 -d ' ')"
2627
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-
3328 - name : Create Release
3429 uses : softprops/action-gh-release@v1
3530 with :
3934 http_archive(
4035 name = "io_bazel_rules_docker",
4136 sha256 = "${{ steps.get_sha.outputs.sha }}",
42- strip_prefix = "rules_docker-${{ env.VERSION }}",
4337 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"],
4438 )
4539 ```
You can’t perform that action at this time.
0 commit comments