diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec0dc19..fa5c405 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} @@ -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 }} @@ -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 @@ -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 @@ -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') }} @@ -182,7 +182,7 @@ jobs: - run: mkdir release-artifacts - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v7 with: path: release-artifacts @@ -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 }}