-
Notifications
You must be signed in to change notification settings - Fork 236
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
Support tag in GH action config #906
Comments
That is a good catch, thank you. I did need to up date it. It is not easy keeping up with the action config as there isn't real testing for it. |
@rantoniuk , would you try out this fix and see if it works for you? jobs:
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Python Semantic Release
uses: codejedi365/python-semantic-release@fix/gha-missing-tag-option
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
commit: false
tag: true
# ... |
Thanks for quick reply. Actually I tested it using the current version and it works without that patch as expected, i.e. it creates a tag but does not push any commits. |
Thank you!
I realize now that really it's because the default is |
🎉 This issue has been resolved in version 9.7.0 🎉The release is available on: |
@codejedi365 thanks for swift action! Quick question, how do you auto-comment the related github issues to add the release information (above)? I looked at your github workflows but I don't see anything related to this and this is a very useful thing! |
Manual copy and paste! lol! I copied the template from the JS version of semantic-release, which auto-posts messages like these for all issues that were resolved, because of how awesome it is. One day, PSR will too. |
--commit
and--tag
are supported separately, i.e. I can run a release on a non-PyPi project that does not require any source code changes and just create a tag and pushing it when doing a release.This is possible in the tool:
https://python-semantic-release.readthedocs.io/en/latest/commands.html#tag-no-tag
but it's not possible in GH action, as there is only
commit
option available:https://github.com/python-semantic-release/python-semantic-release/blob/master/action.yml#L53
and no
tag
option.The text was updated successfully, but these errors were encountered: