Skip to content

GitHub Actions

GitHub Actions #2

Workflow file for this run

name: Release Check
on:
workflow_dispatch:
inputs:
version:
description: 'TimeTrace Version'
required: false
release:
types: [created]
permissions:
contents: write
jobs:
checks:
runs-on: ubuntu-latest

Check failure on line 17 in .github/workflows/release_check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release_check.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
steps:
-
name: Set Tag
run: |
if [[ $GITHUB_EVENT_NAME == "workflow_dispatch" ]]; then
echo "VERSION=${{ github.event.inputs.tag }} " >> $GITHUB_ENV
elif [[ $GITHUB_EVENT_NAME == "release" ]]; then
echo "VERSION=$GITHUB_REF_NAME" >> $GITHUB_ENV
else
exit 1
fi
echo ${{ env.VERSION }}
-
name: Checkout
uses: actions/checkout@v2
-
name: Run Checks
run: python release.py check-changelog --tag=${{ env.Version }}