Skip to content

Commit 1fa6e19

Browse files
committed
Branch must be pushed prior to gh usage
1 parent 4148112 commit 1fa6e19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy-main-branches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ jobs:
142142
echo "${{ secrets.MODULE_PR_TOKEN }}" > token.txt
143143
gh auth login --with-token < token.txt
144144
export CURRENT_PR=$(gh pr list -R ${{ github.repository_owner }}/opencast --head t/admin-${{ needs.detect-repo-owner.outputs.branch }} --json number --jq '.[].number')
145+
git push origin t/admin-${{ needs.detect-repo-owner.outputs.branch }} --force
145146
if [ -n "$CURRENT_PR" ]; then
146147
gh pr edit $CURRENT_PR \
147148
--body "Updating Opencast ${{ needs.detect-repo-owner.outputs.branch }} Admin Interface module to [${{ github.sha }}](https://github.com/${{ github.repository_owner }}/admin-interface/commit/${{ github.sha }})" \
148149
-R ${{ github.repository_owner }}/opencast
149-
git push origin t/admin-${{ needs.detect-repo-owner.outputs.branch }} --force
150150
else
151151
gh pr create \
152152
--title "Update ${{ needs.detect-repo-owner.outputs.branch }} Admin Interface" \

0 commit comments

Comments
 (0)