Skip to content

Commit

Permalink
add workflow tester 37
Browse files Browse the repository at this point in the history
Signed-off-by: GuillaumeFalourd <[email protected]>
  • Loading branch information
GuillaumeFalourd committed Jun 8, 2022
1 parent 8613d2a commit 04f0ecb
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/33-reusable-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Local Action Call Without Input
id: local-action
uses: ./.github/actions/local-action
# with:
# name: "World"
# - name: Local Action Output
# run: echo "${{ steps.local-action.outputs.random }}"
with:
name: "World"
- name: Local Action Output
run: echo "${{ steps.local-action.outputs.random }}"
27 changes: 27 additions & 0 deletions .github/workflows/workflow-tester37.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test 37 #Related to https://stackoverflow.com/questions/72551501/using-if-statements-in-actions

on:
workflow_dispatch:
inputs:
username:
required: true
type: string

jobs:
test:
name: Pass input and secrets to my-action
runs-on: ubuntu-latest
steps:
- name: Inputs username (workflow call)
if: ${{ inputs.username }} != ''
run: echo ${{ inputs.username }}

- name: Inputs username (workflow dispatch)
if: ${{ github.event.inputs.username }} != ''
run: echo ${{ github.event.inputs.username }}

- uses: actions/[email protected] # Necessary to access local action

- name: Local Action Call Without Input
id: local-action
uses: ./.github/actions/local-action

0 comments on commit 04f0ecb

Please sign in to comment.