Skip to content

Commit

Permalink
fix release actions (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
wakingrufus authored Mar 3, 2023
1 parent 52b3119 commit ace57b3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 41,9 @@ jobs:
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
GITHUB_KEY: ${{ secrets.GITHUB_TOKEN }}
run: ./plugin/gradlew -p ./plugin githubRelease --no-daemon
- name: Update VERSION_LATEST_RELEASE to new published version
run: cp plugin/VERSION_CURRENT.txt > plugin/VERSION_LATEST_RELEASE.txt
- name: Update VERSION_LATEST_RELEASE
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update VERSION_LATEST_RELEASE to ${{ github.event.inputs.new_version }}
2 changes: 0 additions & 2 deletions .github/workflows/perform-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 29,6 @@ jobs:
sed -i 's|\(Latest plugin version: \[\).*\(\](/CHANGELOG.md#\).*---.*)|\1'"$new_version"'\2'"$stripped_version"'---'"$formatted_date"')|' README.md
- name: Update VERSION_CURRENT
run: printf "${{ github.event.inputs.new_version }}\n" > plugin/VERSION_CURRENT.txt
- name: Update VERSION_LATEST_RELEASE
run: printf "${{ github.event.inputs.new_version }}\n" > plugin/VERSION_LATEST_RELEASE.txt
- name: Perform Release Tagging and Push
# This will trigger the new release job that will take the tag and push the release to the plugin portal
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

## [Unreleased]

## [11.3.0] - 2023-03-03
### Fixed

- Fixed release github actions [#650](https://github.com/JLLeitschuh/ktlint-gradle/pull/650)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion plugin/VERSION_LATEST_RELEASE.txt
Original file line number Diff line number Diff line change
@@ -1 1 @@
11.3.0
11.1.0

0 comments on commit ace57b3

Please sign in to comment.