Skip to content

Sync Labels from Dante-Wiki Repository #28

Sync Labels from Dante-Wiki Repository

Sync Labels from Dante-Wiki Repository #28

Workflow file for this run

name: Sync Labels from Dante-Wiki Repository
on:
schedule:
- cron: '0 0 * * 0' # Runs weekly
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/[email protected]
- name: Checkout central labels repository
uses: actions/[email protected]
with:
repository: clecap/dante-wiki
path: central
- name: Convert YAML to JSON
run: |
cat dante-wiki/workflows/labels.yml | jq -c . > labels.json
shell: bash
- name: Sync labels
uses: reposync/labeler@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
labels: ${{ toJson(file('labels.json')) }}

Check failure on line 31 in .github/workflows/sync-labels.yml

View workflow run for this annotation

GitHub Actions / Sync Labels from Dante-Wiki Repository

Invalid workflow file

The workflow is not valid. .github/workflows/sync-labels.yml (Line: 31, Col: 19): Unrecognized function: 'file'. Located at position 8 within expression: toJson(file('labels.json'))