Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use the github bot PAT for assign to project and release please #14

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading