• Home
  • Explore

Essential features of GitHub Actions - GitHub Docs

docs.github.com/en/actions/learn-github-actions/essential-features-of-github-actions

1 Users

0 Comments

5 Highlights

0 Notes

Tags

CI/CDDevopsGithub Actions

Top Highlights

  • f your job generates files that you want to share with another job in the same workflow, or if you want to save the files for later reference, you can store them in GitHub as artifacts.

  • Artifacts are associated with the workflow run where they were created and can be used by another job.

  • jobs: example-job: name: Save output steps: - shell: bash run: | expr 1 + 1 > output.log - name: Upload output file uses: actions/upload-artifact@v3 with: name: output-log-file path: output.log

  • jobs: example-job: steps: - name: Download a single artifact uses: actions/download-artifact@v3 with: name: output-log-file

  • To download an artifact from the same workflow run, your download job should specify needs: upload-job-name so it doesn't start until the upload job finishes.

Ready to highlight and find good content?

Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.

AboutPrivacyTerms

© 2023 Glasp Inc. All rights reserved.