Skip to content

Commit

Permalink
use sha in case it's not tag
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamadazmy committed Oct 17, 2023
1 parent ef6e0fc commit 573cef9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bin-package-18.04.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
if [ "${{ github.ref_type }}" = "tag" ]; then
echo "reference=${ref#refs/tags/}" >> $GITHUB_OUTPUT
else
echo "reference=${ref}" >> $GITHUB_OUTPUT
echo "reference=${{ github.sha }}" >> $GITHUB_OUTPUT
fi
- name: Setup basesystem
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/bin-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
if [ "${{ github.ref_type }}" = "tag" ]; then
echo "reference=${ref#refs/tags/}" >> $GITHUB_OUTPUT
else
echo "reference=${ref}" >> $GITHUB_OUTPUT
echo "reference=${{ github.sha }}" >> $GITHUB_OUTPUT
fi
- name: Setup basesystem
run: |
Expand All @@ -44,9 +44,9 @@ jobs:
user: tf-autobuilder
root: bins/releases/${{ inputs.package }}
name: ${{ steps.package.outputs.name }}.flist
- name: Publishing
- name: Tagging
uses: threefoldtech/publish-flist@master
if: success() && github.ref == 'refs/heads/main'
if: success()
with:
token: ${{ secrets.HUB_JWT }}
action: tag
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
if [ "${{ github.ref_type }}" = "tag" ]; then
echo "reference=${ref#refs/tags/}" >> $GITHUB_OUTPUT
else
echo "reference=${ref}" >> $GITHUB_OUTPUT
echo "reference=${{ github.sha }}" >> $GITHUB_OUTPUT
fi
- name: Collecting files
Expand Down

0 comments on commit 573cef9

Please sign in to comment.