Skip to content

Feature/testing #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Workflow Demo

on: [push]
on:
push:
workflow_dispatch:

jobs:
build:
Expand All @@ -18,3 +20,25 @@ jobs:
with:
name: hello-artifact
path: hello.txt


download:
if: github.ref == 'refs/head/main'
needs: build
runs-on: ubuntu-latest
concurrency:
group: prod-download
cancel-in-progress: true

steps:

- name: Download text file
uses: actions/download-artifact@v4
with:
name: hello-artifact
path: ./artifacts

- name: Display content of the text file
run: |
cat ./artifacts/hello.txt
sleep 180s