Commit 6a4e8ecf authored by tom's avatar tom

try to run release workflow

parent 6935b98f
...@@ -115,7 +115,7 @@ jobs: ...@@ -115,7 +115,7 @@ jobs:
if (data.length > 0) { if (data.length > 0) {
core.info(`Found ${ data.length } closed issues with label ${ process.env.LABEL_NAME }. No further action required.`); core.info(`Found ${ data.length } closed issues with label ${ process.env.LABEL_NAME }. No further action required.`);
core.notice('Issues already labeled.') core.notice('Issues already labeled.');
return data.length > 0; return data.length > 0;
} }
......
...@@ -2,9 +2,9 @@ name: Release ...@@ -2,9 +2,9 @@ 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 ]
concurrency: concurrency:
group: ${{ github.workflow }} group: ${{ github.workflow }}
......
name: Update project cards for issues name: Update project cards for issues
on: on:
pull_request:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
project_name: project_name:
...@@ -55,10 +54,9 @@ jobs: ...@@ -55,10 +54,9 @@ jobs:
id: project_info id: project_info
uses: actions/github-script@v6 uses: actions/github-script@v6
env: env:
# TODO @tom2drum: remove fallbacks for PR trigger PROJECT_NAME: ${{ github.event.inputs.project_name }}
PROJECT_NAME: ${{ github.event.pull_request && 'Front-end tasks' || github.event.inputs.project_name }} FIELD_NAME: ${{ github.event.inputs.field_name }}
FIELD_NAME: ${{ github.event.pull_request && 'Status' || github.event.inputs.field_name }} FIELD_VALUE: ${{ github.event.inputs.field_value }}
FIELD_VALUE: ${{ github.event.pull_request && 'Released' || github.event.inputs.field_value }}
with: with:
github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }} github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }}
script: | script: |
...@@ -139,8 +137,7 @@ jobs: ...@@ -139,8 +137,7 @@ jobs:
id: items id: items
uses: actions/github-script@v6 uses: actions/github-script@v6
env: env:
# TODO @tom2drum: remove fallbacks for PR trigger ISSUES: ${{ github.event.inputs.issues }}
ISSUES: ${{ github.event.pull_request && '[900,903,899,912]' || github.event.inputs.issues }}
with: with:
github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }} github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }}
script: | script: |
......
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