27 lines
524 B
YAML
27 lines
524 B
YAML
|
name: Test Workflow
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
|
||
|
jobs:
|
||
|
test-job:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
- name: Cache Data
|
||
|
id: cache-data
|
||
|
uses: actions/cache@v3
|
||
|
with:
|
||
|
path: data.txt
|
||
|
key: ${{ runner.os }}-data
|
||
|
|
||
|
- name: Generate Data
|
||
|
if: steps.cache-data.outputs.cache-hit != 'true'
|
||
|
run: |
|
||
|
echo Doing things!
|
||
|
echo Hello World! > data.txt
|
||
|
|
||
|
- name: Use Data
|
||
|
run: cat data.txt
|