Skip to content

Commit

Permalink
feat: export labels (#1941)
Browse files Browse the repository at this point in the history
  • Loading branch information
9renpoto authored Dec 31, 2023
1 parent 0e62b27 commit 0c8dfa9
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/export-labels
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Export label

on:
label:
types: [created, edited, deleted]
workflow_dispatch:

permissions:
issues: read
contents: write
pull-requests: write

jobs:
export_labels:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: EndBug/export-label-config@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

create_pull_request:
runs-on: ubuntu-latest
timeout-minutes: 5
needs:
- export_labels
steps:
- uses: actions/checkout@v3
with:
ref: main
- uses: actions/download-artifact@v3
with:
name: Label config
- run: cp labels.yaml .github/labels.yaml
- uses: peter-evans/create-pull-request@v5
with:
commit-message: Update labels
delete-branch: true
title: Update labels
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
branch: create-pull-request/patch-export-label
add-paths: |
.github/labels.yaml

0 comments on commit 0c8dfa9

Please sign in to comment.