Commit af6a1777 authored by tom's avatar tom

use separate github token

parent 728d427a
...@@ -2,7 +2,7 @@ name: Release ...@@ -2,7 +2,7 @@ name: Release
on: on:
# TODO @tom2drum: remove PR trigger # TODO @tom2drum: remove PR trigger
pull_request: # pull_request:
release: release:
types: [ released, prereleased ] types: [ released, prereleased ]
...@@ -15,7 +15,8 @@ jobs: ...@@ -15,7 +15,8 @@ jobs:
name: Label released issues name: Label released issues
uses: './.github/workflows/label-released-issues.yml' uses: './.github/workflows/label-released-issues.yml'
secrets: inherit secrets: inherit
if: ${{ github.event.action == 'released' }} # TODO @tom2drum: uncomment condition
# if: ${{ github.event.action == 'released' }}
update_project_cards: update_project_cards:
name: Update project tasks statuses name: Update project tasks statuses
needs: label_released_issues needs: label_released_issues
......
name: Update project cards for issues name: Update project cards for issues
on: on:
# pull_request: pull_request:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
project_name: project_name:
...@@ -61,6 +61,7 @@ jobs: ...@@ -61,6 +61,7 @@ jobs:
FIELD_VALUE: ${{ github.event.pull_request && 'Released' || github.event.inputs.field_value }} FIELD_VALUE: ${{ github.event.pull_request && 'Released' || github.event.inputs.field_value }}
with: with:
debug: true debug: true
github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }}
script: | script: |
const response = await github.graphql(` const response = await github.graphql(`
query ($login: String!, $q: String!) { query ($login: String!, $q: String!) {
...@@ -143,6 +144,7 @@ jobs: ...@@ -143,6 +144,7 @@ jobs:
ISSUES: ${{ github.event.pull_request && '[900,903,899,912]' || github.event.inputs.issues }} ISSUES: ${{ github.event.pull_request && '[900,903,899,912]' || github.event.inputs.issues }}
with: with:
debug: true debug: true
github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }}
script: | script: |
const result = []; const result = [];
const issues = JSON.parse(process.env.ISSUES); const issues = JSON.parse(process.env.ISSUES);
...@@ -208,6 +210,7 @@ jobs: ...@@ -208,6 +210,7 @@ jobs:
FIELD_VALUE_ID: ${{ steps.project_info.outputs.field_value_id }} FIELD_VALUE_ID: ${{ steps.project_info.outputs.field_value_id }}
with: with:
debug: true debug: true
github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }}
script: | script: |
const items = JSON.parse(process.env.ITEMS); const items = JSON.parse(process.env.ITEMS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment