(auto merged) Bump isec-tut/containers/nextcloud from 7b70af5
to 2c15195
in /ansible/manifests/nextcloud
#144
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: auto-merge | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
auto-merge: | |
runs-on: ubuntu-latest | |
if: startsWith(github.head_ref, 'dependabot/') || | |
startsWith(github.head_ref, 'actions/') | |
steps: | |
- name: Generate token | |
id: generate_token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ secrets.AUTO_MERGE_BOT_APP_ID }} | |
private-key: ${{ secrets.AUTO_MERGE_BOT_PRIVATE_KEY }} | |
- name: Approve & enable auto-merge for Dependabot/Actions PR | |
run: | | |
gh pr review --approve "$PR_URL" | |
gh pr edit "$PR_URL" -t "(auto merged) $PR_TITLE" | |
# Retry to work around "Base branch was modified." error. | |
# Ref: https://github.com/cli/cli/issues/8092 | |
for i in {1..3}; do | |
gh pr merge --auto --merge "$PR_URL" && exit 0 | |
sleep 5 | |
done | |
exit 1 | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
PR_TITLE: ${{ github.event.pull_request.title }} | |
GH_TOKEN: ${{ steps.generate_token.outputs.token }} |