aweris / gale

GitHub Action Local Executor
Apache License 2.0
142 stars 4 forks source link

feat: add actions/cache support #76

Closed aweris closed 10 months ago

aweris commented 10 months ago

Introduces a backend service required to support actions/cache custom action

render1692132097953

workflow for the gif:

on: push

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/cache@v3
        id: cache
        with:
          path: hello.txt
          key: ${{ runner.os }}-hello.txt
          restore-keys: |
            ${{ runner.os }}-hello.txt
            ${{ runner.os }}-

      - name: Create hello.txt
        if: steps.cache.outputs.cache-hit != 'true'
        run: echo "Hello World ${{ github.run_id }}" > hello.txt

      - name: Print hello.txt
        run: cat hello.txt