Skip to content

Fixing syntax error on github actions file #29

Fixing syntax error on github actions file

Fixing syntax error on github actions file #29

Workflow file for this run

name: Prepare Release Tag
on:
push:
tags:
- "prep-[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
name: Prepare Release Tag
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: master
token: ${{ secrets.PAT }}
- name: Version
run: |
export plain_tag=$(TAG_NAME=${{ github.ref_name }} echo $TAG_NAME | cut -d "-" -f 2)
echo ::set-output name=version::$plain_tag
- name: Set version
run: ./scripts/set-version.sh ${{ steps.Version.outputs.version }}
- name: Commit new version
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: master
- name: Checkout repository again for tags to containt commited files
uses: actions/checkout@v4
with:
ref: master
token: ${{ secrets.PAT }}
- name: Create release tag
uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
tag: "v${{ steps.Version.outputs.version }}"
tag_exists_error: false
message: "Release version: ${{ steps.Version.outputs.version }}"
token: ${{ secrets.PAT }}
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
- name: Recreate latest tag
uses: rickstaa/action-create-tag@v1
id: "tag_create"

Check failure on line 52 in .github/workflows/set-version.yml

View workflow run for this annotation

GitHub Actions / Prepare Release Tag

Invalid workflow file

The workflow is not valid. .github/workflows/set-version.yml (Line: 52, Col: 13): The identifier 'tag_create' may not be used more than once within the same scope.
with:
tag: "latest"
tag_exists_error: false
force_push_tag: true
message: "Release version: ${{ steps.Version.outputs.version }}"
token: ${{ secrets.PAT }}
env:
GITHUB_TOKEN: ${{ secrets.PAT }}