Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
outputs:
new_tag_name: ${{ steps.get_new_tag.outputs.new_tag_name }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
with:
fetch-depth: 0 # get all history and tags
ref: ${{ github.event.pull_request.base.ref }}
Expand All @@ -39,7 +39,7 @@ jobs:
git config user.name lightform-bot
git config user.email lightform-bot@users.noreply.github.com

- uses: actions/setup-python@v2
- uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION_BUMP }}

Expand All @@ -54,7 +54,7 @@ jobs:
- name: Manipulate tags (stable release)
if: github.event.pull_request.base.ref == 'main'
run:
| # delete all pre-release tags, set current version to the latest stable release,
| # delete all pre-release tags, set current version to the latest stable release
CUR_PRE_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
echo "CUR_PRE_TAG is: $CUR_PRE_TAG"
echo "cur_pre_tag=$CUR_PRE_TAG" >> $GITHUB_ENV
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
./git-chglog --template .chglog/RELEASE.tpl.md --output CHANGELOG_increment.md ${{ env.new_tag }}
cat CHANGELOG_increment.md

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v6
with:
name: CHANGELOG_increment
path: CHANGELOG_increment.md
Expand All @@ -152,16 +152,16 @@ jobs:
needs: [bump-version]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.base.ref }} # otherwise we get the ref when the workflow started (missing above commit)

- uses: actions/setup-python@v2
- uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION_RELEASE }}

- name: Cache the virtualenv
uses: actions/cache@v2
uses: actions/cache@v5
with:
path: ./.venv
key: venv-release-${{ hashFiles('**/poetry.lock') }}
Expand All @@ -182,7 +182,7 @@ jobs:

- run: mkdir release-artifacts

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v7
with:
path: release-artifacts

Expand All @@ -191,7 +191,7 @@ jobs:

- name: Release
id: release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
body_path: release-artifacts/CHANGELOG_increment/CHANGELOG_increment.md
tag_name: ${{ needs.bump-version.outputs.new_tag_name }}
Expand Down
Loading