Skip to content

Commit

Permalink
Merge pull request #5264 from GeorgianaElena/auto-prj-management
Browse files Browse the repository at this point in the history
Use 2i2c-bot PAT token instead
  • Loading branch information
GeorgianaElena authored Dec 11, 2024
2 parents aad1bed + a0b3e9b commit 3403544
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/project-board-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@ on:
issues:
types:
- labeled
# Issues opened by recurrent workflows don't trigger a labeled event
# so we check opened issues as well
- opened

jobs:
update-project-board-fields:
if: >
(github.event.action == "opened" && contains(github.event.issue.labels.*.name, "recurrent")) ||
(github.event.action == "labeled" && github.event.label.name == "recurrent")
if: github.event.label.name == 'recurrent'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/recurrent-get-billing-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
--title "[Billing] Dedicated clusters: collect billing data for $NEXT_MONTH" \
--body "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.PROJECT_BOARD_PAT_TOKEN }}
GH_REPO: ${{ github.repository }}
NEXT_MONTH: ${{ env.next_month }}
BODY: |
Expand All @@ -41,7 +41,7 @@ jobs:
--title "[Billing] Shared clusters: collect billing data for $NEXT_MONTH" \
--body "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.PROJECT_BOARD_PAT_TOKEN }}
GH_REPO: ${{ github.repository }}
NEXT_MONTH: ${{ env.next_month }}
BODY: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
--title "[$DEADLINE] Regenerate SMCE credentials" \
--body "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.PROJECT_BOARD_PAT_TOKEN }}
GH_REPO: ${{ github.repository }}
DEADLINE: ${{ env.deadline }}
BODY: |
Expand Down

0 comments on commit 3403544

Please sign in to comment.