Skip to content

Move licence to project root #4

Move licence to project root

Move licence to project root #4

Workflow file for this run

name: Auto-Release
on:
workflow_call:
inputs:
new_tag:
required: true
type: string
secrets:
GITHUB_TOKEN:

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
jobs:
auto-release:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Debug
run: |
echo ${{ github.event_name }}
echo ${{ github.ref }}
echo ${{ github.event.pull_request.head.ref }}
echo ${{ github.event.pull_request.base.ref }}
echo ${{ github.event }}
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump job context
env:
JOB_CONTEXT: ${{ toJson(job) }}
run: echo "$JOB_CONTEXT"
- name: Dump steps context
env:
STEPS_CONTEXT: ${{ toJson(steps) }}
run: echo "$STEPS_CONTEXT"
- name: Create Git release
uses: ncipollo/[email protected]
with:
token: "${{ secrets.GITHUB_TOKEN }}"
generateReleaseNotes: true
makeLatest: true
prerelease: false
tag: ${{ inputs.new_tag }}