Skip to content

Commit 06e3eb2

Browse files
committed
2 parents bcb1210 + a29d616 commit 06e3eb2

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/documentation.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
pull_request:
77
branches: ["main"]
88

9-
# Re-run every Tuesday at 6AM
10-
# schedule:
11-
# - cron: "0 6 * * 2"
9+
# Re-run every day at 4PM
10+
schedule:
11+
- cron: "0 16 * * *"
1212

1313
# Re-run on demand:
1414
workflow_dispatch:
@@ -24,14 +24,14 @@ jobs:
2424
- uses: actions/checkout@v4
2525
with:
2626
path: MAIN
27+
persist-credentials: false
2728

2829
- name: Set fractal-web reference
2930
run: |
3031
FRACTAL_WEB_REFERENCE=$(cat MAIN/fractal-web-reference.txt)
3132
echo "FRACTAL_WEB_REFERENCE=$FRACTAL_WEB_REFERENCE" >> $GITHUB_ENV
3233
33-
- run: echo ${{ env.FRACTAL_WEB_REFERENCE }}
34-
34+
3535
- uses: actions/checkout@v4
3636
with:
3737
repository: fractal-analytics-platform/fractal-web
@@ -40,6 +40,7 @@ jobs:
4040
sparse-checkout: |
4141
components
4242
tasks-list
43+
persist-credentials: false
4344

4445
- uses: actions/setup-python@v5
4546
with:
@@ -99,11 +100,13 @@ jobs:
99100
run: mv WEB/tasks-list/build/ site/task-table
100101

101102
- name: Set last-updated timestamp
103+
env:
104+
FRACTAL_WEB_REFERENCE: ${{ env.FRACTAL_WEB_REFERENCE }}
102105
run: |
103106
CURRENT_DATE=$(date +"%Y-%m-%d %H:%M %Z")
104107
echo "$CURRENT_DATE"
105108
sed -i'.bak1' "s/LASTUPDATEDPLACEHOLDER/$CURRENT_DATE/" site/fractal_tasks/index.html
106-
sed -i'.bak2' "s/FRACTALWEBREFERENCEPLACEHOLDER/${{ env.FRACTAL_WEB_REFERENCE }}/" site/fractal_tasks/index.html
109+
sed -i'.bak2' "s/FRACTALWEBREFERENCEPLACEHOLDER/${FRACTAL_WEB_REFERENCE}/" site/fractal_tasks/index.html
107110
rm site/fractal_tasks/index.html.bak1 site/fractal_tasks/index.html.bak2
108111
109112
- run: ls -lh site/*

0 commit comments

Comments
 (0)