Skip to content

Commit f9dbd4e

Browse files
authored
Merge pull request #61 from BoatraceOpenAPI/ci/update-checkout-step
ci: improve cron workflow functionality
2 parents 44a2fc5 + 5570f26 commit f9dbd4e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/cron.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
- cron: '0,30 * * * *'
66
workflow_dispatch:
77

8+
concurrency:
9+
group: cron-${{ github.ref }}
10+
cancel-in-progress: false
11+
812
permissions:
913
contents: write
1014

@@ -21,6 +25,20 @@ jobs:
2125

2226
- name: Checkout Code
2327
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
28+
with:
29+
fetch-depth: 0
30+
31+
- name: Get Composer cache directory
32+
id: composer-cache
33+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
34+
35+
- name: Cache Composer dependencies
36+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809
37+
with:
38+
path: ${{ steps.composer-cache.outputs.dir }}
39+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
40+
restore-keys: |
41+
${{ runner.os }}-php-
2442
2543
- name: Install base dependencies (without scraper)
2644
run: |

0 commit comments

Comments
 (0)