Skip to content

Commit

Permalink
action test
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradac authored Jun 25, 2024
1 parent b16d333 commit 65f6ba5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/actions/action-a.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Hello World'
description: 'Greet someone'
inputs:
who-to-greet: # id of input
description: 'Who to greet'
required: true
default: 'World'
outputs:
random-number:
description: "Random number"
value: ${{ steps.random-number-generator.outputs.random-number }}
runs:
using: "composite"
steps:
- name: Set Greeting
run: echo "Hello $INPUT_WHO_TO_GREET."
shell: bash
env:
INPUT_WHO_TO_GREET: ${{ inputs.who-to-greet }}

- name: Random Number Generator
id: random-number-generator
run: echo "random-number=$(echo $RANDOM)" >> $GITHUB_OUTPUT
shell: bash
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ jobs: # these jobs run serially because of the 'needs:' keyword on each
new-branch: ${{ steps.version-check.outputs.new-branch }}
branch-snapshot-version: ${{ steps.version-check.outputs.branch-snapshot-version }}
steps:
- id: foo
uses: ./.github/actions/action-a.yml
with:
who-to-greet: 'Mona the Octocat'

- name: figure out versions
id: version-check
run: |
Expand Down

0 comments on commit 65f6ba5

Please sign in to comment.