Skip to content

Add write permissions for the workflow to create releases #4

Add write permissions for the workflow to create releases

Add write permissions for the workflow to create releases #4

Workflow file for this run

name: test-release-action
on:
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true
type: string
jobs:
create-release:
runs-on: windows-latest
    permissions:
      contents: write
steps:

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
- name: Check out repository
uses: actions/checkout@v4
- name: Create artifacts directory
run: mkdir bin
- name: Copy scripts
run: xcopy /e /i src bin
- name: Publish release
run: gh release create v${{ inputs.version }} --title "Release v${{ inputs.version }}" bin --notes "Manual release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}