Skip to content

Commit

Permalink
Merge pull request #915 from Crown-Commercial-Service/fix-releases
Browse files Browse the repository at this point in the history
Update actions to fix releases
  • Loading branch information
tim-s-ccs committed Jan 16, 2024
2 parents 163baf2 + 279731f commit 0f38aca
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Get package version
id: package_version
run: echo "::set-output name=python::"$(python setup.py --version)
run: echo "python=$(python setup.py --version)" >> $GITHUB_OUTPUT

- name: Check if version tag already exists
id: version_tag
Expand All @@ -40,9 +40,8 @@ jobs:

- name: Create GitHub release
if: ${{ steps.version_tag.outputs.exists == 'false' }}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.DM_GITHUB_TOKEN }}
uses: ncipollo/release-action@v1
with:
tag_name: ${{ steps.package_version.outputs.python }}
release_name: Release v${{ steps.package_version.outputs.python }}
token: ${{ secrets.DM_GITHUB_TOKEN }}
tag: ${{ steps.package_version.outputs.python }}
name: Release v${{ steps.package_version.outputs.python }}

0 comments on commit 0f38aca

Please sign in to comment.