28 lines
992 B
YAML
28 lines
992 B
YAML
name: "Auto-Label Issues"
|
|
on:
|
|
issues:
|
|
types: [opened, labeled, unlabeled]
|
|
|
|
jobs:
|
|
shared-issues:
|
|
name: "Add Labels to Issues. Safe to Merge on fail"
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Authenticate as GitHub App
|
|
uses: actions/create-github-app-token@v2
|
|
id: get-app-token
|
|
with:
|
|
owner: "airbytehq"
|
|
repositories: "airbyte"
|
|
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
|
|
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
|
|
- name: Run Issue Command from workflow-actions
|
|
uses: nick-fields/private-action-loader@v3
|
|
with:
|
|
pal-repo-token: "${{ steps.get-app-token.outputs.token }}"
|
|
pal-repo-name: airbytehq/workflow-actions@production
|
|
# the following input gets passed to the private
|
|
token: "${{ steps.get-app-token.outputs.token }}"
|
|
# ref: https://github.com/airbytehq/workflow-actions/blob/main/src/bin_issue.ts
|
|
command: "issue"
|