Skip to content

Merge pull request #49 from dreadnode/ads/eng-1581-rigging-repo-house… #1

Merge pull request #49 from dreadnode/ads/eng-1581-rigging-repo-house…

Merge pull request #49 from dreadnode/ads/eng-1581-rigging-repo-house… #1

---
name: "Meta Sync labels"
on:
workflow_dispatch:
push:
branches: ["main"]
paths: [".github/labels.yaml"]
permissions:
actions: read
contents: read
issues: write
pull-requests: write
jobs:
labels:
name: Sync Labels
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1.11.6
id: app-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Set up git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: "${{ steps.app-token.outputs.token }}"
- name: Sync Labels
uses: EndBug/label-sync@52074158190acb45f3077f9099fea818aa43f97a # v2.3.3
with:
config-file: .github/labels.yaml
token: "${{ steps.app-token.outputs.token }}"
delete-other-labels: true