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

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