Commit 6935b98f authored by tom's avatar tom

fix incorrect reference

parent af6a1777
...@@ -60,7 +60,6 @@ jobs: ...@@ -60,7 +60,6 @@ jobs:
FIELD_NAME: ${{ github.event.pull_request && 'Status' || github.event.inputs.field_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 }} FIELD_VALUE: ${{ github.event.pull_request && 'Released' || github.event.inputs.field_value }}
with: with:
debug: true
github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }} github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }}
script: | script: |
const response = await github.graphql(` const response = await github.graphql(`
...@@ -128,9 +127,9 @@ jobs: ...@@ -128,9 +127,9 @@ jobs:
} }
core.info('Found following info:'); core.info('Found following info:');
core.info(' project_id: ', projectId); core.info(` project_id: ${ projectId }`);
core.info(' field_id: ', field.id); core.info(` field_id: ${ field.id }`);
core.info(' field_value_id: ', option.id); core.info(` field_value_id: ${ option.id }`);
core.setOutput('id', projectId); core.setOutput('id', projectId);
core.setOutput('field_id', field.id); core.setOutput('field_id', field.id);
...@@ -143,7 +142,6 @@ jobs: ...@@ -143,7 +142,6 @@ jobs:
# TODO @tom2drum: remove fallbacks for PR trigger # TODO @tom2drum: remove fallbacks for PR trigger
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
github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }} github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }}
script: | script: |
const result = []; const result = [];
...@@ -209,7 +207,6 @@ jobs: ...@@ -209,7 +207,6 @@ jobs:
FIELD_ID: ${{ steps.project_info.outputs.field_id }} FIELD_ID: ${{ steps.project_info.outputs.field_id }}
FIELD_VALUE_ID: ${{ steps.project_info.outputs.field_value_id }} FIELD_VALUE_ID: ${{ steps.project_info.outputs.field_value_id }}
with: with:
debug: true
github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }} github-token: ${{ secrets.BOT_LABEL_ISSUE_TOKEN }}
script: | script: |
const items = JSON.parse(process.env.ITEMS); const items = JSON.parse(process.env.ITEMS);
...@@ -221,7 +218,7 @@ jobs: ...@@ -221,7 +218,7 @@ jobs:
} }
for (const item of items) { for (const item of items) {
core.info(`Changing field value for item ${ issue }...`); core.info(`Changing field value for item ${ item }...`);
await changeItemFieldValue(item); await changeItemFieldValue(item);
core.info('Done.\n'); core.info('Done.\n');
} }
......
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