Skip to content

ci: use github application instead of pat in workflows AP-1309 #1

ci: use github application instead of pat in workflows AP-1309

ci: use github application instead of pat in workflows AP-1309 #1

name: Add issues and PRs to the Apollo project
on:
issues:
types: [opened]
pull_request:
types: [opened]
jobs:
add-to-project:
name: Add to project
runs-on: ubuntu-latest
steps:
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ vars.APOLLO_APP_ID }}
application_private_key: ${{ secrets.APOLLO_APP_SECRET }}
- name: Add to Apollo Project
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/eduNEXT/projects/1
github-token: ${{ steps.get_workflow_token.outputs.token }}