Commit aaab1a07 authored by tom's avatar tom

fix condition for creating label workflow

parent 5daf0fd8
...@@ -84,7 +84,7 @@ jobs: ...@@ -84,7 +84,7 @@ jobs:
} catch (error) { } catch (error) {
if (error.status === 404) { if (error.status === 404) {
core.info('Nothing has found.'); core.info('Nothing has found.');
core.setOutput('id', null); core.setOutput('id', 'null');
} }
} }
...@@ -96,8 +96,8 @@ jobs: ...@@ -96,8 +96,8 @@ jobs:
LABEL_ID: ${{ steps.label.outputs.id }} LABEL_ID: ${{ steps.label.outputs.id }}
with: with:
script: | script: |
if (!process.env.LABEL_ID) { if (process.env.LABEL_ID === 'null') {
core.info(`Label doesn not exist. No need to fetch issues.`); core.info(`Label does not exist. No need to fetch issues.`);
return false; return false;
} }
...@@ -237,7 +237,7 @@ jobs: ...@@ -237,7 +237,7 @@ jobs:
- name: Creating label with latest release tag - name: Creating label with latest release tag
id: label_creating id: label_creating
uses: actions/github-script@v6 uses: actions/github-script@v6
if: ${{ steps.has_labeled_issues.outputs.result == 'false' }} if: ${{ steps.label.outputs.id == 'null' && steps.has_labeled_issues.outputs.result == 'false' }}
env: env:
LABEL_NAME: ${{ steps.tags.outputs.latest }} LABEL_NAME: ${{ steps.tags.outputs.latest }}
LABEL_COLOR: ${{ github.event.inputs.label_color }} LABEL_COLOR: ${{ github.event.inputs.label_color }}
......
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