Skip to content

Add issues to the Docs project #21

Add issues to the Docs project

Add issues to the Docs project #21

name: Add issues to the Docs project
on:
schedule:
- cron: "*/30 * * * *"
workflow_dispatch:
jobs:
main:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: grafana/shared-workflows/actions/get-vault-secrets@main
with:
common_secrets: |
ISSUE_COMMANDS_APP_ID=docs-team/issue-commands:app-id
ISSUE_COMMANDS_PRIVATE_KEY=docs-team/issue-commands:key
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ env.ISSUE_COMMANDS_APP_ID }}
private-key: ${{ env.ISSUE_COMMANDS_PRIVATE_KEY }}
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: "add-to-docs-project/package.json"
- run: yarn install
working-directory: ./add-to-docs-project
- run: node index.mjs
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
working-directory: ./add-to-docs-project