Skip to content

Commit

Permalink
feat: use the github bot PAT for assign to project and release please (
Browse files Browse the repository at this point in the history
…#14)

* feat: use release-please v4 that accepts a token

* feat: use the github PAT for assign-to-project
  • Loading branch information
aimeerivers authored Mar 1, 2024
1 parent e940430 commit 01fe85b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 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
3 changes: 2 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
contains(github.event.pull_request.labels.*.name, 'autorelease: pending')
)
steps:
- uses: google-github-actions/release-please-action@v3
- uses: google-github-actions/release-please-action@v4
id: release-please
with:
release-type: node
token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}

0 comments on commit 01fe85b

Please sign in to comment.