Skip to content

Commit

Permalink
Merge pull request #1869 from rubocop/improve-release
Browse files Browse the repository at this point in the history
Improve release workflow
  • Loading branch information
ydah committed Apr 9, 2024
2 parents 7b2884e + 9596cc4 commit 26fd2dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Expand Up @@ -10,6 +10,7 @@ jobs:
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
Expand All @@ -32,7 +33,9 @@ jobs:
if ! git diff --exit-code docs/antora.yml; then
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git checkout -b switch-docs-version
git add docs/antora.yml
git commit -m "Switch docs version back"
git push
git push -u origin switch-docs-version
gh pr create --fill --head switch-docs-version
fi

0 comments on commit 26fd2dd

Please sign in to comment.