Skip to content

Bump codecov/codecov-action from 4.5.0 to 4.6.0 #282

Bump codecov/codecov-action from 4.5.0 to 4.6.0

Bump codecov/codecov-action from 4.5.0 to 4.6.0 #282

Workflow file for this run

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/fetch-metadata@v2.2.0
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 <boni.garcia@uc3m.es>"; 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}}