New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
squash and merge tags original branch not new target #215
Comments
I think you are right |
Thank you for your response. Figured out the solution in the meantime. It's to change the ref for the second config in the readme to Maybe a note can be added there for future users? Seems to be working fine now. EDIT: this should actually be |
Updated example in this pr #218 |
Thank you! Although I have found an additional error: ...
name: version bump
on:
pull_request:
types:
- closed
branches:
- main
jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: "0"
... After looking at the GitHub docs, this is probably the correct reference to use for PR. I also needed to add the if statement |
Mind opening a pr with improved readme examples? |
Fix example based on discussion in anothrNick#215
Sure thing @sbe-arg, I've opened the following PR: |
* Update README.md Fix example based on discussion in #215 * Update README.md Revert qoutes to match original config
Not sure if I am missing an obvious config setting, but squashing and merging, instead of a plain merge tags the original commit on the old branch from a PR rather than the new squashed and merged commit on our main branch.
The text was updated successfully, but these errors were encountered: