mirror of
https://github.com/LukeHagar/prettier-plugin-openapi.git
synced 2025-12-06 04:21:03 +00:00
Update release workflow to push changes to the main branch using HEAD reference instead of a direct branch name, improving compatibility with various Git configurations.
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -117,7 +117,7 @@ jobs:
|
|||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
git add package.json
|
git add package.json
|
||||||
git commit -m "chore: auto-bump version to ${{ steps.bump-version.outputs.version }}"
|
git commit -m "chore: auto-bump version to ${{ steps.bump-version.outputs.version }}"
|
||||||
git push origin main
|
git push origin HEAD:main
|
||||||
|
|
||||||
# Create a git tag like v1.2.3 if it doesn't already exist
|
# Create a git tag like v1.2.3 if it doesn't already exist
|
||||||
- name: Create tag if missing
|
- name: Create tag if missing
|
||||||
|
|||||||
Reference in New Issue
Block a user