Skip to content

Fast-forward

Fast-forward #1

Workflow file for this run

name: Fast-forward
on:
pull_request_review:
types:
- submitted
permissions:
contents: write
jobs:
approved:
if: |
github.event.pull_request.head.ref == 'develop' &&
github.event.pull_request.base.ref == 'main' &&
github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
git checkout main
git merge --ff-only "${{ github.event.pull_request.head.sha }}"
git push origin main
publish:
needs:
- approved
# Call workflow explicitly because events from actions cannot trigger more actions
uses: ./.github/workflows/release.yml

Check failure on line 31 in .github/workflows/fast-forward.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/fast-forward.yml

Invalid workflow file

error parsing called workflow ".github/workflows/fast-forward.yml" -> "./.github/workflows/release.yml" : workflow is not reusable as it is missing a `on.workflow_call` trigger
secrets: inherit