You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently noticed, for some of triggering PRs, if the user updated any out-of-date branch by clicking the update branch button and with rebase option selected. Then running this action would cause a failure.
From the log it looks the action is trying to checking staging branch which doesn't exist in the repo.
name: Fast-Forward PRon:
issue_comment:
types: [created]jobs:
fast_forward_job:
name: Fast Forwardif: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/fast-forward')runs-on: ubuntu-lateststeps:
# To use this repository's private action, you must check out the repository
- name: Checkout code into workspace directoryuses: actions/checkout@v3with:
fetch-depth: 0# Basic use case example
- name: Fast Forward PRuses: endre-spotlab/[email protected]with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}success_message: 'Success! Fast forwarded ***target_base*** to ***source_head***! ```git checkout target_base && git merge source_head --ff-only``` 'failure_message: 'Failed! Cannot do fast forward!'# staging_branch: 'main'# production_branch: 'prod'
In our use case, we typically merges pu/module/* branches into origin/next branch.
The text was updated successfully, but these errors were encountered:
Thanks for making this action.
I recently noticed, for some of triggering PRs, if the user updated any out-of-date branch by clicking the update branch button and with rebase option selected. Then running this action would cause a failure.
From the log it looks the action is trying to checking staging branch which doesn't exist in the repo.
Failed log
Workflow File
In our use case, we typically merges
pu/module/*
branches intoorigin/next
branch.The text was updated successfully, but these errors were encountered: