Skip to content

Commit

Permalink
update with run id
Browse files Browse the repository at this point in the history
  • Loading branch information
joshjohanning authored Nov 18, 2024
1 parent 0017fd5 commit 5a10d28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/blank-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run:
gh workflow run blank-2.yml -R ${{ github.repository }}
gh workflow run blank-2.yml -R ${{ github.repository }} -f run_id=${{ github.run_id }}
10 changes: 10 additions & 0 deletions .github/workflows/blank-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
run_id:
default: '123'
type: number
required: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -29,3 +34,8 @@ jobs:
run: |
echo Add other actions to build,
echo test, and deploy your project.
- name: echo run id passed in
run:
echo "${{ inputs.run_id }}"

0 comments on commit 5a10d28

Please sign in to comment.