Skip to content

Release PR for 2.11.7 as nightly #406

Release PR for 2.11.7 as nightly

Release PR for 2.11.7 as nightly #406

name: automerge-nightly-pr
on:
pull_request:
types: [labeled]
# This job relies on defining required checks in your branch protection settings
# Settings > Branches > 'main' > Require status checks to pass before merging
jobs:
automerge:
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.title, 'Release PR for') && endsWith(github.event.pull_request.title, 'nightly')
steps:
- name: Install plugin-release-management
run: npm install -g @salesforce/plugin-release-management --omit=dev
- name: Automerge
uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd
with:
max_attempts: 30
retry_wait_seconds: 120 # 30 attempts every two minutes
command: sf-release cli:release:automerge --owner salesforcecli --repo cli --pull-number ${{ github.event.pull_request.number }} --verbose
retry_on: error
timeout_minutes: 60
env:
GITHUB_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}