Skip to content

Merge pull request #129 from mziyut/dependabot/github_actions/actions… #65

Merge pull request #129 from mziyut/dependabot/github_actions/actions…

Merge pull request #129 from mziyut/dependabot/github_actions/actions… #65

Workflow file for this run

name: Export label
on:
push:
paths:
- '.github/workflows/label_export.yml'
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@v4
with:
ref: main
- uses: actions/setup-node@v3
with:
cache: 'yarn'
- uses: actions/download-artifact@v3
with:
name: Label config
- run: cp labels.yaml .github/labels.yaml
- run: npx prettier .github/labels.yaml --write
- 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>
reviewers: mziyut
branch: create-pull-request/patch-export-label
add-paths: |
.github/labels.yaml
labels: |
labels