Skip to content

Experiment with a release workflow #4

Experiment with a release workflow

Experiment with a release workflow #4

Workflow file for this run

name: Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
mlton-version:
runs-on: ubuntu-24.04
outputs:
mlton-version: ${{ steps.mlton-version.outputs.mlton-version }}
steps:
- name: mlton-version
id: mlton-version
run: |
MLTON_VERSION=$( echo '${{ github.ref_name }}' | sed -En 's;on-([0-9]{8})-release;\1;p')
if [ -n "${MLTON_VERSION}" ]; then echo "mlton-version=${MLTON_VERSION}" >> "$GITHUB_OUTPUT"; else echo "Unable to determine MLTON_VERSION"; exit 1; fi
source-release:
needs: mlton-version
uses: ./.github/workflows/source-release

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

invalid value workflow reference: workflow file should have either a '.yml' or '.yaml' file extension
with:
mlton-version: ${{ needs.mlton-version.outputs.mlton-version }}
secrets: inherit