Release PR for 2.60.6 as nightly #1029
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: 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: salesforcecli/github-workflows/.github/actions/retry@main | |
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 | |
env: | |
GITHUB_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} |