Skip to content

Add missing version output config #18

Add missing version output config

Add missing version output config #18

Workflow file for this run

name: Build and Release
on:
push:
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yml

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

View workflow run for this annotation

GitHub Actions / Build and Release

Invalid workflow file

The workflow is not valid. In .github/workflows/release.yml (Line: 9, Col: 11): Error from called workflow paralleltree/AvatarAid/.github/workflows/build.yml@1afa17f4f6f925f06a453e5aea1077eb88eb2616 (Line: 6, Col: 16): Unrecognized named-value: 'jobs'. Located at position 1 within expression: jobs.build.outputs.version In .github/workflows/release.yml (Line: 9, Col: 11): Error from called workflow paralleltree/AvatarAid/.github/workflows/build.yml@1afa17f4f6f925f06a453e5aea1077eb88eb2616 (Line: 6, Col: 16): Unexpected value '${{ jobs.build.outputs.version }}'
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Check existing release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ "$(gh release view --repo ${{ github.repository }} ${{ needs.build.outputs.version }} 2>&1)" != 'release not found' ]; then
echo "Release already exists"
exit 1
fi
- name: Create release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.build.outputs.version }}
draft: true
files: |
Artifacts/*