Skip to content

Accept Release Candidate #1

Accept Release Candidate

Accept Release Candidate #1

name: Accept Release Candidate
on:
pull_request_review:
types: [submitted]
jobs:
merge:
name: Merge Release Candidate
if: >

Check failure on line 10 in .github/workflows/accept_release_candidate.yml

View workflow run for this annotation

GitHub Actions / Accept Release Candidate

Invalid workflow file

The workflow is not valid. .github/workflows/accept_release_candidate.yml (Line: 10, Col: 9): Unrecognized named-value: 'steps'. Located at position 53 within expression: github.event.review.state == 'approved' && contains(steps.ref_from_sha.outputs.branch_name, "rc")
github.event.review.state == 'approved' &&
contains(steps.ref_from_sha.outputs.branch_name, "rc")
runs-on: ubuntu-latest
steps:
- name: "Merge pull request"
uses: "actions/github-script@v5"
with:
script: |
const pullRequest = context.payload.workflow_run.pull_requests[0]
const repository = context.repo
await github.rest.pulls.merge({
merge_method: "merge",
owner: repository.owner,
pull_number: pullRequest.number,
repo: repository.repo,
})