Skip to content
Closed

test #98

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Action1"
on:
workflow_dispatch:
jobs:
job1:
runs-on: ubuntu-latest
outputs:
foo: ${{ steps.checkout.outputs.foo }}
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Set output"
id: checkout
run: echo "foo=bar" >> $GITHUB_OUTPUT

job2:
runs-on: ubuntu-latest
needs: job1
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Set output in job2"
id: checkout2
run: echo "foo=bar2" >> $GITHUB_OUTPUT

- name: "Run a one-line script"
run: |
echo "from job2: ${{ steps.checkout2.outputs.foo }}"
echo "from job1: ${{ needs.job1.outputs.foo }}"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_store
.DS_store
node_modules
Submodule shell-container-action deleted from 8b7006

This file was deleted.

This file was deleted.

Loading