Skip to content

Commit

Permalink
Release Modifications (#2816)
Browse files Browse the repository at this point in the history
* Update create pull request action

* Add arm lock file

* Modifications for displaying vhangelog

* Test on fork

* Undo changes to test on fork

* Test git cliff pinned

* Reset release triggers
  • Loading branch information
atharva-2001 authored Sep 30, 2024
1 parent 513cd06 commit 14013c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Get current date
run: echo "DATE=$(date +'%Y.%m.%d')" >> $GITHUB_ENV

- uses: peter-evans/create-pull-request@v4
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.BOT_TOKEN }}
committer: TARDIS Bot <tardis.sn.bot@gmail.com>
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
python-version: "3.x"

- name: Install setuptools_scm
run: pip install 'setuptools_scm<7'
run: pip install "setuptools_scm<7" git-cliff==2.6.1

- name: Show current version
run: python .ci-helpers/get_current_version.py
Expand All @@ -38,6 +38,13 @@ jobs:
python .ci-helpers/get_next_version.py
echo "NEW_TAG=$(python .ci-helpers/get_next_version.py)" >> $GITHUB_ENV
- name: Generate and process changelog
run: |
CHANGELOG=$(git cliff --config pyproject.toml --unreleased | sed -n '/^## Changelog/,$p' | grep -vE '^(ERROR|WARN)')
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
echo "$CHANGELOG" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Create new release
uses: softprops/action-gh-release@v1
with:
Expand All @@ -47,9 +54,12 @@ jobs:
prerelease: false
body: |
This release has been created automatically by the TARDIS continuous delivery pipeline.
${{ env.CHANGELOG }}
A complete list of changes for this release is available at [CHANGELOG.md](https://github.com/tardis-sn/tardis/blob/master/CHANGELOG.md).
files: |
conda-osx-arm64.lock
conda-linux-64.lock
conda-osx-64.lock
conda-lock.yml
Expand Down

0 comments on commit 14013c1

Please sign in to comment.