Bump org.assertj:assertj-core from 3.26.3 to 3.27.0 #314
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: Dependabot auto-merge | |
on: pull_request | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
dependabot: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/[email protected] | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Enable auto-merge for Dependabot PRs | |
run: | | |
max_retries=10 | |
retry_count=0 | |
sleep_duration=1 | |
while ! gh pr merge "$PR_URL" --auto --squash --body="Co-authored-by: Boni Garcia <[email protected]>"; do | |
retry_count=$((retry_count+1)) | |
if [ $retry_count -ge $max_retries ]; then | |
echo "Command failed after $retry_count attempts." | |
exit 1 | |
fi | |
echo "Command failed. Retrying in $sleep_duration seconds..." | |
sleep $sleep_duration | |
sleep_duration=$((sleep_duration * 2)) # Exponential backoff | |
done | |
echo "Command succeeded after $retry_count attempts." | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |