-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate label sync to endbug/label-sync
- Loading branch information
Showing
3 changed files
with
35 additions
and
14 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
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,23 +1,32 @@ | ||
name: Synchronize labels | ||
|
||
name: Sync labels | ||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- '.github/labels.yml' | ||
- '.github/workflows/labels.yml' | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
labeler: | ||
labels: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Run Labeler | ||
uses: crazy-max/ghaction-github-labeler@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
yaml-file: .github/labels.yml | ||
sparse-checkout: .github/labels.yml | ||
|
||
- uses: EndBug/label-sync@v2 | ||
with: | ||
config-file: | | ||
https://raw.githubusercontent.com/biocommons/.github/main/.github/labels.yml | ||
.github/labels.yml | ||
delete-other-labels: false | ||
dry-run: true | ||
#token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
D=$(ls -1d */.git | cut -d/ -f1 | egrep -v 'biocommons.example|seqrepo-rs') | ||
git-all () { for d in $D; do (set -x; git -C $d "$@"); done } | ||
|
||
for d in $D; do \cp -a biocommons.example/.github/ISSUE_TEMPLATE $d/.github/; done | ||
for d in $D; do \cp -a biocommons.example/.github/workflows/labels.yml $d/.github/workflows/; done | ||
|
||
git-all add .github/labels.yml .github/workflows/labels.yml | ||
git-all com -m "add standardized github labels and update action" .github/labels.yml .github/workflows/labels.yml | ||
git-all push | ||
https://axolo.co/blog/p/part-3-github-pull-request-template |