Closed andyfeller closed 2 years ago
Describe the bug
Workflow step state is non-0
0
It appears that previous development on the template did not revert https://github.com/skills/writing-javascript-actions/blob/main/.github/script/STEP back to 0
Workflow conditional expressions improperly terminated
The conditional expressions used to selectively trigger workflows in this skills course appear to have syntax errors. The following list of workflows use multi-line conditionals that are terminated improperly:
writing-javascript-actions/.github/workflows/4-create-javascript-files-for-action.yml
-41- if: ${{ github.repository_owner != 'TBD-organization' }} :42: && needs.get_current_step.outputs.current_step == 4 }}
writing-javascript-actions/.github/workflows/5-add-action-to-workflow-file.yml
-44- if: ${{ github.repository_owner != 'TBD-organization' }} :45: && needs.get_current_step.outputs.current_step == 5 }}
writing-javascript-actions/.github/workflows/2-configure-your-action.yml
-42- if: ${{ github.repository_owner != 'TBD-organization' }} :43: && needs.get_current_step.outputs.current_step == 2 }}
writing-javascript-actions/.github/workflows/1-initialize-javascript-project.yml
-43- if: ${{ github.repository_owner != 'TBD-organization' }} :44: && needs.get_current_step.outputs.current_step == 1 }}
writing-javascript-actions/.github/workflows/3-create-metadata-file.yml
-44- if: ${{ github.repository_owner != 'TBD-organization' }} :45: && needs.get_current_step.outputs.current_step == 3 }}
writing-javascript-actions/.github/workflows/6-trigger-action.yml
-44- if: ${{ github.repository_owner != 'TBD-organization' }} :45: && needs.get_current_step.outputs.current_step == 6 }}
Invalid YAML for multi-line conditional
Using all of the examples above, this is invalid syntax for block YAML use cases.
Instead of:
if: ${{ github.repository_owner != 'TBD-organization' && needs.get_current_step.outputs.current_step == 6 }}
One of the following forms must be used:
Single line
Multi line block
if: | ${{ github.repository_owner != 'TBD-organization' && needs.get_current_step.outputs.current_step == 6 }}
To Reproduce Steps to reproduce the behavior:
Expected behavior Use of this skills course respected the state of the workflow step under execution without errors.
Screenshots If applicable, add screenshots to help explain your problem.
Device information
Additional context Add any other context about the problem here.
cc: @emilyistoofunky
This time, I have tried multi-line conditional expressions with >-. Cf. #8
>-
Describe the bug
Workflow step state is non-
0
It appears that previous development on the template did not revert https://github.com/skills/writing-javascript-actions/blob/main/.github/script/STEP back to
0
Workflow conditional expressions improperly terminated
The conditional expressions used to selectively trigger workflows in this skills course appear to have syntax errors. The following list of workflows use multi-line conditionals that are terminated improperly:
writing-javascript-actions/.github/workflows/4-create-javascript-files-for-action.yml
writing-javascript-actions/.github/workflows/5-add-action-to-workflow-file.yml
writing-javascript-actions/.github/workflows/2-configure-your-action.yml
writing-javascript-actions/.github/workflows/1-initialize-javascript-project.yml
writing-javascript-actions/.github/workflows/3-create-metadata-file.yml
writing-javascript-actions/.github/workflows/6-trigger-action.yml
Invalid YAML for multi-line conditional
Using all of the examples above, this is invalid syntax for block YAML use cases.
Instead of:
One of the following forms must be used:
Single line
Multi line block
To Reproduce Steps to reproduce the behavior:
Expected behavior Use of this skills course respected the state of the workflow step under execution without errors.
Screenshots If applicable, add screenshots to help explain your problem.
Device information
Additional context Add any other context about the problem here.