generated from sapphiredev/sapphire-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
name: Automatic Label Sync | ||
name: Sync labels | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 12 * * *' | ||
|
||
permissions: | ||
issues: write | ||
contents: read | ||
|
||
jobs: | ||
label_sync: | ||
name: Automatic Label Synchronization | ||
labels: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | ||
with: | ||
repository: 'sapphiredev/readme' | ||
- name: Run Label Sync | ||
uses: crazy-max/ghaction-github-labeler@f4f6b96e7e747b5416cd470f3cfecf26abaa811e # v4 | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Refactor labels | ||
uses: EndBug/label-sync@v2 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
yaml-file: .github/labels.yml | ||
config-file: ${{ github.workspace }}/.github/labels.yml | ||
delete-other-labels: true |