-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
99 additions
and
10 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
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,13 @@ | ||
name: "2024 PyCON DE 🔬 Show Default Shell" | ||
run-name: "MANUAL - 🔬 Show Default Shell (run by - ${{ github.triggering_actor }})" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
show_default_shell: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Display Default Shell | ||
run: echo "Default Shell $SHELL" |
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,13 @@ | ||
name: "2024 PyCON DE 🔬 Show Default Env" | ||
run-name: "MANUAL - 🔬 Show Default Env (run by - ${{ github.triggering_actor }})" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
show_default_shell: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Display Environment | ||
run: printenv |
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,33 @@ | ||
name: "2024 PyCON DE 🎲 Random Number Workflow" | ||
run-name: "MANUAL - 🔬 Show Default Env (run by - ${{ github.triggering_actor }})" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
random-number-generator: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
number: ${{ steps.generate-number.outputs.number }} | ||
is-even: ${{ steps.generate-number.outputs.is-even }} | ||
steps: | ||
- id: generate-number | ||
run: echo "number=$(echo $RANDOM)" >> "$GITHUB_OUTPUT" | ||
- id: is-even | ||
run: | | ||
echo "is-even=$(( ${{steps.generate-number.outputs.number}} % 2 == 0 ))" >> "$GITHUB_OUTPUT" | ||
echo "The number is ${{steps.generate-number.outputs.number}}" >> $GITHUB_STEP_SUMMARY | ||
consumer-of-generator-odd: | ||
needs: random-number-generator | ||
runs-on: ubuntu-latest | ||
if: ${{ needs.random-number-generator.outputs.is-even == 0 }} | ||
steps: | ||
- run: echo "The number is ${{ needs.random-number-generator.outputs.number }} is odd" | ||
|
||
consumer-of-generator-even: | ||
needs: random-number-generator | ||
runs-on: ubuntu-latest | ||
if: ${{ needs.random-number-generator.outputs.is-even == 1 }} | ||
steps: | ||
- run: echo "The number is ${{ needs.random-number-generator.outputs.number }} is even" |
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,18 @@ | ||
name: "2024 PyCON DE ♻️ My Reusable Workflow" | ||
run-name: "MANUAL - ♻️ My Reusable Workflow (run by - ${{ github.triggering_actor }})" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
example_param: | ||
description: 'An example input parameter' | ||
required: true | ||
default: 'Hello, World! (default) 😞' | ||
type: string | ||
|
||
jobs: | ||
my_job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Output Input Parameter | ||
run: echo "The input parameter value is ${{ inputs.example_param }}" |
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,11 @@ | ||
name: "2024 PyCON DE ♻️ Trigger Reusable Workflow" | ||
run-name: "MANUAL - ♻️ Trigger Reusable Workflow (run by - ${{ github.triggering_actor }})" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
trigger_workflow: | ||
uses: Kislovskiy/talks/.github/workflows/2024_PyConDE_reusable_workflow.yaml@github-acitons-playground | ||
with: | ||
example_param: 'Hello, World! 😀' |