Skip to content

Commit 40904e0

Browse files
committed
Fixed bug in release pipeline
1 parent 83700f2 commit 40904e0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/manual-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
old_version: ${{ steps.bumpversion.outputs.old_ver }}
2222
version: ${{ steps.bumpversion.outputs.new_ver }}
2323
app_name: ${{ steps.appinfo.outputs.app_name }}
24+
new_sha: ${{ steps.sha.outputs.sha }}
2425
# Validate bump part before moving forward
2526
if: contains(['major', 'minor', 'patch'], ${{ github.event.inputs.bumpPart }})
2627
steps:
@@ -44,6 +45,12 @@ jobs:
4445
run: |
4546
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
4647
git push "${remote_repo}" HEAD:${GITHUB_REF} --follow-tags --tags
48+
49+
- name: Get sha
50+
id: sha
51+
run: |
52+
sha_new=$(git rev-parse HEAD)
53+
echo "::set-output name=sha::$sha_new"
4754
4855
build:
4956
name: Generate App Bundle
@@ -52,6 +59,9 @@ jobs:
5259
steps:
5360
- name: Checkout code
5461
uses: actions/checkout@v2
62+
with:
63+
ref: ${{ needs.tag-version.outputs.new_sha }}
64+
fetch-depth: 0
5565

5666
- name: Excluding images from README
5767
run: |

0 commit comments

Comments
 (0)