diff --git a/.github/workflows/work_with_artifacts.yml b/.github/workflows/work_with_artifacts.yml new file mode 100644 index 0000000..124cd93 --- /dev/null +++ b/.github/workflows/work_with_artifacts.yml @@ -0,0 +1,26 @@ +name: work with artifacts + +on: workflow_dispatch + +jobs: + upload-job: + name: Save output + runs-on: ubuntu-latest + steps: + - shell: bash + run: | + expr 1 + 1 > output.log + - name: Upload output file + uses: actions/upload-artifact@v4 + with: + name: output-log-file + path: output.log + + download-job: + needs: upload-job + runs-on: ubuntu-latest + steps: + - name: Download a single artifact + uses: actions/download-artifact@v4 + with: + name: output-log-file