Skip to content

workflow_call instead of workflow_run #6

workflow_call instead of workflow_run

workflow_call instead of workflow_run #6

Workflow file for this run

name: Release
on:
push:
paths:
- 'VERSION'
jobs:
release:
runs-on: ubuntu-latest
outputs:
semvertag: ${{ steps.getver.outputs.semvertag }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Build
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper
- name: Build with Gradle
run: ./gradlew build
- name: Read version file
id: getver
run: |
VER=$(cat VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
echo "semvertag=$VER" >> $GITHUB_OUTPUT
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: build/libs/adm.war
tag_name: v${{ env.VERSION }}
docker_publish:
needs:
- release
uses: ./github/workflows/docker-publish.yml

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

invalid value workflow reference: no version specified
with:
semvertag: ${{ needs.release.outputs.semvertag }}