diff --git a/README.md b/README.md index 9ddf59a..977e57a 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,9 @@ jobs: steps: - name: Add PR to github project uses: silverstripe/add-pr-to-project@v1 + with: + app_id: ${{ vars.MY_APP_ID }} + private_key: ${{ secrets.MY_PRIVATE_KEY }} ``` This action has no inputs. diff --git a/action.yml b/action.yml index a34acc2..66b6b7a 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,14 @@ name: Add pull request to project description: GitHub Action to add new pull requests to the Community Contributions GitHub project +inputs: + app_id: + description: 'The ID for a GitHub App, used to generate a token' + required: true + private_key: + description: 'The private key for a GitHub App, used to generate a token' + required: true + runs: using: composite steps: @@ -33,8 +41,8 @@ runs: if: steps.check-if-should-add.outputs.should_add_to_project == 'true' && github.repository_owner == 'silverstripe' uses: actions/create-github-app-token@v1 with: - app-id: ${{ vars.PROJECT_PERMISSIONS_APP_ID }} - private-key: ${{ secrets.PROJECT_PERMISSIONS_APP_PRIVATE_KEY }} + app-id: ${{ inputs.app_id }} + private-key: ${{ inputs.private_key }} - name: Add to project if: steps.check-if-should-add.outputs.should_add_to_project == 'true'