Skip to content

Commit

Permalink
build: add-to-project workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rostislav-simonik committed Sep 16, 2023
1 parent 84d1e74 commit a8fbc29
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/add-to-project.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
on:
workflow_call:
secrets:
ADD_TO_PROJECT_PRIVATE_KEY:
required: true
pull_request:
types: [opened]
issues:
types: [opened]

jobs:
add-to-project:
runs-on: ubuntu-latest
steps:
- uses: navikt/github-app-token-generator@v1
id: get-token
with:
app-id: ${{ vars.ADD_TO_PROJECT_APP_ID }}
private-key: ${{ secrets.ADD_TO_PROJECT_PRIVATE_KEY }}
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/standard/projects/1
github-token: ${{ steps.get-token.outputs.token }}

uses: standard/.github/.github/workflows/add-to-project.yaml@master
secrets: inherit

0 comments on commit a8fbc29

Please sign in to comment.