This repository has been archived on 2023-12-31. You can view files and clone it, but cannot push or open issues or pull requests.
actions-cache-testing/.github/workflows/test-workflow.yaml

26 lines
523 B
YAML
Raw Normal View History

2023-12-31 06:37:14 +00:00
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
2023-12-31 06:38:11 +00:00
run: cat data.txt