Skip to content

Release v0.1.0

Release v0.1.0 #6

Workflow file for this run

name: Release
on:
pull_request:
branches:
- release/current
- release/*.*.*
types: [closed]
permissions:
contents: write
jobs:
create-github-release:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
outputs:
RELEASED_VERSION: ${{ steps.version.outputs.project_version }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- name: Install dependencies
run: |
yarn global add turbo
yarn global add node-gyp
yarn --frozen-lockfile
- name: Read version from VERSION file
id: version
run: echo "::set-output name=project_version::$(cat VERSION)"
- name: Read version from pyproject.toml
id: version

Check failure on line 45 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 45, Col: 11): The identifier 'version' may not be used more than once within the same scope.
run: |
version=$(awk -F\" '/version =/ {print $2}' pyproject.toml)
echo "::set-output name=project_version::$version"
- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: v${{ steps.version.outputs.project_version }}
release-notes: ${{ github.event.pull_request.body }}
- name: Commit, Tag and Push
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: ${{ github.event.pull_request.base.ref }}
commit_message: Release v${{ steps.version.outputs.project_version }}
tagging_message: v${{ steps.version.outputs.project_version }}
- uses: softprops/action-gh-release@v2
with:
body: ${{ github.event.pull_request.body }}
tag_name: v${{ steps.version.outputs.project_version }}
target_commitish: ${{ github.head_ref }}
- name: Delete drafts
uses: hugo19941994/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}