feat(release.yaml): option to config parallelsim #6
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
# This workflow is required and run as part of an org-wide ruleset | |
name: Dependency Auto-Merge | |
on: | |
pull_request: | |
merge_group: | |
permissions: | |
pull-requests: write | |
contents: write | |
issues: write | |
jobs: | |
dependabot: | |
name: Auto-Merge Dependabot PR | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }} | |
steps: | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/fetch-metadata@v2 | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Enable auto-merge | |
# Only enable auto-merge if the PR is not a major version update | |
# if: steps.metadata.outputs.update-type != 'version-update:semver-major' | |
# Requires that auto-merge is enabled for the repository | |
run: gh pr merge --auto --squash "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Approve PR | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
mend: | |
name: Auto-Merge Mend PR | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.login == 'ibm-mend-app[bot]' }} | |
steps: | |
- name: Enable auto-merge | |
# Requires that auto-merge is enabled for the repository | |
run: gh pr merge --auto --squash "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Approve PR | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |