Skip to content

Commit 576c6bf

Browse files
committed
Use single fractal-web reference config file
1 parent d72c03b commit 576c6bf

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.github/workflows/documentation.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,15 @@ jobs:
2525
with:
2626
path: MAIN
2727

28+
- name: Set fractal-web reference
29+
run: |
30+
FRACTAL_WEB_REFERENCE=$(cat fractal-web-reference.txt)
31+
echo "FRACTAL_WEB_REFERENCE=$FRACTAL_WEB_REFERENCE" >> $GITHUB_ENV
32+
2833
- uses: actions/checkout@v4
2934
with:
3035
repository: fractal-analytics-platform/fractal-web
31-
ref: tasks-list-module # FIXME: replace with main (or latest tag?)
36+
ref: ${{ env.FRACTAL_WEB_REFERENCE }}
3237
path: WEB
3338
sparse-checkout: |
3439
components

docs/available_tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ hide:
2424
</iframe>
2525

2626

27-
(last updated: LASTUPDATEDPLACEHOLDER)
27+
(last build on LASTUPDATEDPLACEHOLDER, with `fractal-web` FRACTALWEBREFERENCEPLACEHOLDER)

fractal-web-reference.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
b044c44a7b3acd01f5b91b295eac0b97516ad74d

tools/full_local_build.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ set -e
44

55
date
66

7-
FRACTAL_WEB_REF=b044c44a7b3acd01f5b91b295eac0b97516ad74d
8-
7+
FRACTAL_WEB_REFERENCE=$(cat fractal-web-reference.txt)
98

109
CURRENT_DIR=$(pwd)
1110
WEBDIR="/tmp/WEB"
@@ -26,7 +25,7 @@ ls -lh tasks_data_retrieval/tasks.json
2625
# Build
2726
git clone [email protected]:fractal-analytics-platform/fractal-web "$WEBDIR"
2827
cd "$WEBDIR"
29-
git checkout "$FRACTAL_WEB_REF"
28+
git checkout "$FRACTAL_WEB_REFERENCE"
3029
cd "$WEBDIR/components/"
3130
npm install
3231
cd "$WEBDIR/tasks-list"
@@ -36,8 +35,10 @@ npm run build
3635
cp -r build "$CURRENT_DIR/site/fractal-tasks"
3736

3837
CURRENT_DATE=$(date)
39-
sed -i'.bak' "s/LASTUPDATEDPLACEHOLDER/$CURRENT_DATE/" "$CURRENT_DIR/site/available_tasks/index.html"
40-
rm "$CURRENT_DIR/site/available_tasks/index.html.bak"
38+
sed -i'.bak1' "s/LASTUPDATEDPLACEHOLDER/$CURRENT_DATE/" "$CURRENT_DIR/site/available_tasks/index.html"
39+
sed -i'.bak2' "s/FRACTALWEBREFERENCEPLACEHOLDER/$FRACTAL_WEB_REFERENCE/" "$CURRENT_DIR/site/available_tasks/index.html"
40+
rm "$CURRENT_DIR/site/available_tasks/index.html.bak1"
41+
rm "$CURRENT_DIR/site/available_tasks/index.html.bak2"
4142

4243

4344
deactivate

0 commit comments

Comments
 (0)