Skip to content

Commit

Permalink
debug input oddity
Browse files Browse the repository at this point in the history
  • Loading branch information
jenseng committed Dec 7, 2023
1 parent 5175289 commit e8b32d6
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: test
on:
push: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./action-1
with:
my-input: 1
9 changes: 9 additions & 0 deletions action-1/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: action 2
description: Action 2
inputs:
my-input:
description: My input
runs:
using: node20
main: index.js
post: post.js
1 change: 1 addition & 0 deletions action-1/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log(`action-2 my-input = ${process.env["INPUT_MY-INPUT"]} (main)`);
1 change: 1 addition & 0 deletions action-1/post.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log(`action-2 my-input = ${process.env["INPUT_MY-INPUT"]} (post)`);
1 change: 1 addition & 0 deletions action-1/pre.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log(`action-2 my-input = ${process.env["INPUT_MY-INPUT"]} (pre)`);
19 changes: 19 additions & 0 deletions action-2/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: action 1
description: Action 1
inputs:
my-input:
description: My input
runs:
using: composite
steps:
- shell: bash
env:
my_input: ${{ inputs.my-input }}
run: echo action-1 my-input = "$my_input"
- uses: ./action-2
with:
my-input: 2
- shell: bash
env:
my_input: ${{ inputs.my-input }}
run: echo action-1 my-input = "$my_input"

0 comments on commit e8b32d6

Please sign in to comment.