Skip to content

Commit

Permalink
Fix some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
TheByronHimes committed May 15, 2024
1 parent 7198d4a commit 025d956
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/cache-changed-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ on:
outputs:
services:
description: 'List of changed services'
value: ${{ steps.read-cached-result.outputs.services }}
value: ${{ jobs.cache-and-retrieve.outputs.services }}

jobs:
cache-and-retrieve:
outputs:
services: ${{ steps.set-output.outputs.services }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Restore cache
id: cache-changed-services
id: restore-cache
uses: actions/cache@v3
with:
path: services.txt
Expand All @@ -40,6 +42,7 @@ jobs:
echo "services=none" >> $GITHUB_ENV
- name: Run get-changed-services if cache miss
id: run-get-changed-services
if: env.services == 'none'
run: |
echo "Running get-changed-services"
Expand All @@ -48,6 +51,7 @@ jobs:
echo "services=$CHANGED_SERVICES" >> $GITHUB_ENV
- name: Cache the result
id: cache-results
if: env.services != 'none'
uses: actions/cache@v3
with:
Expand Down

0 comments on commit 025d956

Please sign in to comment.