Run code if file changes
name: Shell
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v6
- name: Before cache
run: |
echo before
- name: Cache
id: cache-something
uses: actions/cache@v5
with:
path: already-built.txt
key: build-${{ hashFiles('requirements.txt', 'other.txt') }}
- name: Building database
run: ./build.sh