Sync Labels from Dante-Wiki Repository #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Sync Labels from Dante-Wiki RepositoryInvalid workflow file
|