You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Resolve pull request refs
v0.0.1
Tested only for issue_comment
event. When your workflow triggers on a comment on PR, you can use this action.
TODO: test also on pull_request
events.
Required: Github API Token
Pull request base ref.
Pull request head ref.
- name: resolve pr refs
id: refs
uses: eficode/resolve-pr-refs@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
on:
issue_comment:
types: [created]
jobs:
fast_forward_merge:
name: ff-merge
if: ${{ github.event.comment.body == '/ff-merge' }}
runs-on: ubuntu-latest
steps:
- name: resolve pr refs
id: refs
uses: eficode/resolve-pr-refs@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: checkout base
uses: actions/checkout@v2
with:
ref: ${{ steps.refs.outputs.base_ref }}
- name: fast forward merge pr
run: |
git fetch
git merge --ff-only origin/${{ steps.refs.outputs.head_ref }}
git push
npm i -g @vercel/ncc
ncc build index.js --license licenses.txt
git tag -a -m "Amazing new release" v1.1
git push --follow-tags