Skip to content

Commit 1881384

Browse files
authored
Merge pull request tensorflow#1821 from lamberta/sync-keras
keras guides sync: Do not keep rest of branch updated
2 parents af0b684 + 5917b2a commit 1881384

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/bot-nightly.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,28 @@ jobs:
1616
path: keras-io
1717
- uses: actions/checkout@v2
1818
with:
19+
# tensorflow/docs branch to save generated notebooks.
1920
ref: snapshot-keras
20-
fetch-depth: 0
2121
path: docs
2222
- name: Set up repo
2323
run: |
2424
# Set commit author.
2525
git config --global user.name "$GITHUB_ACTOR"
2626
git config --global user.email "[email protected]"
27-
# Update branch.
28-
cd docs
29-
if ! git merge origin/master; then
30-
echo "[${GITHUB_WORKFLOW}] Unable to update from master branch." >&2
31-
exit 1
32-
fi
3327
- name: Set up Python
3428
uses: actions/setup-python@v2
29+
with:
30+
python-version: '3.8'
3531
- name: Install requirements
3632
run: |
33+
python3 -m pip install -U pip
3734
python3 -m pip install -U -r keras-io/requirements.txt
3835
python3 -m pip install -U git+https://github.com/tensorflow/docs
3936
- name: Generate Keras notebooks
4037
run: |
38+
# Autogen requires formated code
39+
echo "[${GITHUB_WORKFLOW}] Format Python files ..."
40+
python -m black keras-io/guides/
4141
mkdir -p keras-io/tf # Make sure output dir exists.
4242
cd keras-io/scripts/
4343
echo "[${GITHUB_WORKFLOW}] Generate Keras guides ..."

0 commit comments

Comments
 (0)