Skip to content

Refactor: added workflow_dispatch #37

Refactor: added workflow_dispatch

Refactor: added workflow_dispatch #37

name: Release Drafter
on:
workflow_dispatch:
inputs:
version:
description: Release version without the leading "v"
required: false
type: string
push:
branches: [ main ]
permissions:
contents: write
pull-requests: read
id-token: write
attestations: write
artifact-metadata: write
jobs:
update-release-draft:
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.release_drafter.outputs.tag_name }}
steps:
- name: Update release draft
id: release_drafter
uses: release-drafter/release-drafter@v7
with:
config-name: release-drafter.yml
version: ${{ github.event_name == 'workflow_dispatch' && inputs.version || '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-attested:
needs: update-release-draft
uses: ./.github/workflows/publish-attested.yml

Check failure on line 38 in .github/workflows/release-drafter.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release-drafter.yml

Invalid workflow file

error parsing called workflow ".github/workflows/release-drafter.yml" -> "./.github/workflows/publish-attested.yml" (source branch with sha:35200a890bff0b8d88d1e7982f6feb39689d0935) --> "./.github/workflows/publish-artifacts.yml" (source branch with sha:35200a890bff0b8d88d1e7982f6feb39689d0935) : (Line: 3, Col: 1): Unexpected value 'oon'
with:
version: ${{ needs.update-release-draft.outputs.tag_name }}
secrets:
NUGET_SIGN_CERTIFICATE_BASE64: ${{ secrets.NUGET_SIGN_CERTIFICATE_BASE64 }}
NUGET_SIGN_CERTIFICATE_PASSWORD: ${{ secrets.NUGET_SIGN_CERTIFICATE_PASSWORD }}
NUGET_SIGN_CERTIFICATE_SHA256_FINGERPRINT: ${{ secrets.NUGET_SIGN_CERTIFICATE_SHA256_FINGERPRINT }}
NUGET_SIGN_TIMESTAMP_URL: ${{ secrets.NUGET_SIGN_TIMESTAMP_URL }}
NUGET_SIGN_SKIP_VERIFICATION: ${{ secrets.NUGET_SIGN_SKIP_VERIFICATION }}