Skip to content

Commit

Permalink
feat: use the github PAT for assign-to-project
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeerivers committed Mar 1, 2024
1 parent 7745b77 commit 1feb5fb
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/assign-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ on:
required: false
type: number

secrets:
ASSIGN_TO_PROJECT_TOKEN:
description: Personal Access Token with "repo" and "project" permissions.
required: true

jobs:
project:
runs-on: ubuntu-latest
Expand All @@ -29,15 +24,15 @@ jobs:
name: Add to project
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/hedia-team/projects/${{inputs.project-id || 2}}
github-token: ${{ secrets.ASSIGN_TO_PROJECT_TOKEN }}
project-url: https://github.com/orgs/hedia-team/projects/${{ inputs.project-id || 2 }}
github-token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}

- if: github.event_name == 'pull_request'
name: Set status
uses: hedia-team/[email protected]
with:
project-url: https://github.com/orgs/hedia-team/projects/${{inputs.project-id || 2}}
github-token: ${{ secrets.ASSIGN_TO_PROJECT_TOKEN }}
project-url: https://github.com/orgs/hedia-team/projects/${{ inputs.project-id || 2 }}
github-token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
item-id: ${{ steps.addItem.outputs.itemId }}
field-keys: Status
field-values: In Progress

0 comments on commit 1feb5fb

Please sign in to comment.