-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change TOML config file to use MD (#84)
* ci: test separate repo for reusable workflows * ci: test separate repo for reusable workflows * ci: test separate repo for reusable workflows * ci: update continuous testing to include semantic release check * chore: modify pyproject release branches specification * ci: update continuous testing to include semantic release check on pyproject.toml modification * ci: add pull request context to quick test * ci: remove automatic prerelease tag from pr builds for time being * ci: update semantic-release workflow for commits to staging * fix: depths as true measured depths not as heights from TD_0 * ci: configure semantic-release on staging branch The semantic-release job will now run on staging and automatically update the version number to the next version and create a new changelog. It will not, however, add a tag or build a release. This may result in a need to synchronize. --------- Signed-off-by: David Hart <[email protected]>
- Loading branch information
Showing
9 changed files
with
137 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ jobs: | |
permissions: | ||
id-token: write | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Harden Runner | ||
|
@@ -40,27 +39,8 @@ jobs: | |
run: | | ||
echo "short_sha=$(git rev-parse --short HEAD)\n" >> $GITHUB_OUTPUT | ||
- name: Action | Check if release is needed | ||
id: check | ||
# Adjust tag with desired version if applicable. | ||
uses: python-semantic-release/python-semantic-release@c1bcfdbb994243ac7cf419365d5894d6bfb2950e # v9.12.0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
git_committer_name: "github-actions" | ||
git_committer_email: "[email protected]" | ||
root_options: -vv --noop | ||
build: false | ||
changelog: true | ||
commit: false | ||
push: false | ||
tag: false | ||
vcs_release: false | ||
# prerelease: true | ||
# build_metadata: ${{ github.ref_name }}@${{ steps.vars.outputs.short_sha }} | ||
|
||
- name: Action | Semantic Release - Update version | ||
id: release | ||
if: steps.check.outputs.released == 'true' | ||
# Adjust tag with desired version if applicable. | ||
uses: python-semantic-release/python-semantic-release@c1bcfdbb994243ac7cf419365d5894d6bfb2950e # v9.12.0 | ||
with: | ||
|
@@ -73,20 +53,3 @@ jobs: | |
push: true | ||
tag: true | ||
vcs_release: false | ||
prerelease: true | ||
prerelease_token: rc | ||
build_metadata: ${{ steps.vars.outputs.short_sha }} | ||
|
||
- name: Action | Create Pull Request - Release | ||
if: steps.check.outputs.released == 'true' | ||
run: | | ||
gh pr create -B main -H staging --title "release: Merge into main and create tag as v${{ steps.release.outputs.version }}" --body 'Created by Github action: semantic-release.yml' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Action | Create Pull Request - Chore | ||
if: steps.check.outputs.released == 'false' | ||
run: | | ||
gh pr create -B main -H staging --title 'chore: Merge non-code changes into main' --body 'Created by Github action: semantic-release.yml' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.