-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge branch 'git-commit-push-action-7191511992-windows-full-remote' …
…into windows
Showing
8 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: 70 - Post Failure | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
force-failure: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Force job failure | ||
run: exit 1 | ||
|
||
post-failure: | ||
runs-on: ubuntu-latest | ||
needs: force-failure | ||
if: ${{ always() && contains(needs.*.result, 'failure') }} | ||
steps: | ||
- name: Do something | ||
run: echo "Do something" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 71 - Many Outputs Python | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
python-script: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
test1: ${{ steps.script.outputs.TEST1 }} | ||
test2: ${{ steps.script.outputs.TEST2 }} | ||
test3: ${{ steps.script.outputs.TEST3 }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Execute Python script | ||
id: script | ||
run: python output_function.py | ||
|
||
job2: | ||
runs-on: ubuntu-latest | ||
needs: python-script | ||
steps: | ||
- name: Print outputs | ||
run: | | ||
echo ${{ needs.python-script.outputs.test1 }} | ||
echo ${{ needs.python-script.outputs.test2 }} | ||
echo ${{ needs.python-script.outputs.test3 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Mon Dec 11 01:15:43 UTC 2023 | ||
Tue Dec 12 01:15:43 UTC 2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Fri Dec 8 06:22:59 UTC 2023 | ||
Mon Dec 11 06:23:29 UTC 2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import os | ||
|
||
def save_output(name: str, value: str): | ||
with open(os.environ['GITHUB_OUTPUT'], 'a') as output_file: | ||
print(f'{name}={value}', file=output_file) | ||
|
||
save_output('TEST1', 'VALUE1') | ||
save_output('TEST2', 'VALUE2') | ||
save_output('TEST3', 'VALUE3') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Tue Dec 12 06:20:56 CUT 2023 | ||
Wed Dec 13 06:20:33 CUT 2023 |