Skip to content

Commit 5df251d

Browse files
authored
Merge pull request diffblue#5761 from NlightNFotis/dockerhub_action_third_fix
[CI] Get version information from $GITHUB_REF.
2 parents f4edb72 + eae8d09 commit 5df251d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/release-packages.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,20 +210,16 @@ jobs:
210210

211211
push-docker-image-dockerhub:
212212
runs-on: ubuntu-20.04
213-
env:
214-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
215213
steps:
216214
- name: Checkout CBMC source
217215
uses: actions/checkout@v2
218216
with:
219217
submodules: recursive
220-
- name: Get release info
221-
id: get_release_info
222-
uses: bruceadams/[email protected]
223218
- name: Set Image Tag
224219
run: |
225-
echo ${{ steps.get_release_info.outputs.tag_name }}
226-
VERSION = ${{ steps.get_release_info.outputs.tag_name }}
220+
echo ${{ github.ref }}
221+
echo $GITHUB_REF
222+
echo $GITHUB_REF | cut -d "/" -f 3 >> $VERSION
227223
arrVERSION=(${VERSION//-/ })
228224
echo "IMAGE_TAG=diffblue/cbmc:${arrVERSION[1]}" >> $GITHUB_ENV
229225
- name: Build docker image

0 commit comments

Comments
 (0)