Skip to content

Fix github token missing error #9

Fix github token missing error

Fix github token missing error #9

name: Periodic Build and Release
on:
schedule:
- cron: '0 0 * * 0' # Runs weekly
workflow_dispatch: # Allows manual triggering
pull_request:
branches:
- main
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# See: https://github.com/huggingface/semver-release-action?tab=readme-ov-file
# and https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#branches
- name: Release
uses: huggingface/semver-release-action@latest
permissions:

Check failure on line 24 in .github/workflows/patch-upgrades-release.yml

View workflow run for this annotation

GitHub Actions / Periodic Build and Release

Invalid workflow file

The workflow is not valid. .github/workflows/patch-upgrades-release.yml (Line: 24, Col: 9): Unexpected value 'permissions'
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}