Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-german committed Apr 11, 2024
1 parent 3ed107f commit f772850
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/generate-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
with:
name: hello-text
path: hello.txt
- name: echo run id
run: echo ${{ github.run_id }}
- name: echo run number
run: echo ${{ github.run_number }}
upload-to-s3:
uses: ./.github/workflows/upload-to-s3.yml
with:
workflow-name: generate-file.yml
run-id: ${{ github.run_id }}
run-number: ${{ github.run_number }}
secrets: inherit
needs: generate_text_file
9 changes: 5 additions & 4 deletions .github/workflows/upload-to-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,23 @@ on:
workflow-name:
required: true
type: string
run-id:
run-number:
required: true
type: string
jobs:
upload-to-s3:
runs-on: ubuntu-latest
steps:
- name: echo run id
run: echo ${{ inputs.run-id }}
- name: echo run number
run: echo ${{ inputs.run-number }}
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v3
with:
workflow: ${{ inputs.workflow-name }}
skip_unpack: true
run_id: ${{ inputs.run-id }}
run_number: ${{ inputs.run-number }}
allow_forks: false
- name: ls
run: ls
- name: Upload to S3
Expand Down

0 comments on commit f772850

Please sign in to comment.