Skip to content

Commit fb2924f

Browse files
committed
create and upload artifact
1 parent 0aa3351 commit fb2924f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/04-passing-data.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,17 @@ jobs:
8585
echo "Repo variable: $EXAMPLE_REPOSITORY_VARIABLE"
8686
echo "Env secret (masked): $EXAMPLE_ENVIRONMENT_SECRET"
8787
echo "Env variable: $EXAMPLE_ENVIRONMENT_VARIABLE"
88+
89+
job-artifact:
90+
runs-on: ubuntu-24.04
91+
steps:
92+
- name: Create artifact file
93+
run: |
94+
echo "This will be stored as an artifact!" > artifact.txt
95+
echo "Generated by job-artifact on $(date)" >> artifact.txt
96+
97+
- name: Upload artifact
98+
uses: actions/upload-artifact@v4
99+
with:
100+
name: example-artifact
101+
path: artifact.txt

0 commit comments

Comments
 (0)