Skip to content

Commit

Permalink
Attempt to fix automated Flathub publisher again
Browse files Browse the repository at this point in the history
skip-ci: create-release
skip-ci: deploy-mpr
skip-ci: deploy-snap
  • Loading branch information
hwittenborn committed Oct 7, 2023
1 parent 74eb567 commit 69e8481
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,23 @@ jobs:
echo "The build failed! Please investigate manually."
exit 1
elif echo "${comments}" | grep -q successful; then
# Even after a successful build, we have to wait
# a bit longer for Buildbot to allow us to merge.
status='BLOCKED'
while [[ "${status}" == 'BLOCKED' ]]; do
echo 'Waiting for @flathubbot to allow merging...'
sleep 1
status="$(gh pr list --json number,mergeStateStatus -q ".[] | select(.number==${pr_id}).mergeStateStatus")"
done
echo "The build succeeded! Merging the PR..."
gh pr merge "${pr_id}" --auto --merge
gh pr merge "${pr_id}" --merge
exit
fi
echo "Waiting for @flathubbot to report status checks..."
sleep 1
done
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_CUSTOM }}
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 69e8481

Please sign in to comment.