Commit 6a4e8ecf authored by tom's avatar tom

try to run release workflow

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