Skip to content

Commit

Permalink
Merge pull request #3 from standard/add-to-project
Browse files Browse the repository at this point in the history
build: add-to-project workflow
  • Loading branch information
mightyiam committed Sep 16, 2023
2 parents 84d1e74 + a8fbc29 commit b9394e2
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/add-to-project@v0.5.0
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 b9394e2

Please sign in to comment.