59 lines
2.1 KiB
YAML
59 lines
2.1 KiB
YAML
name: 'Post-submit tasks'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
update-renderdiff-goldens:
|
|
name: update-renderdiff-goldens
|
|
runs-on: 'ubuntu-24.04-4core'
|
|
steps:
|
|
- uses: actions/checkout@v4.1.6
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: ./.github/actions/linux-prereq
|
|
- id: get_commit_msg
|
|
uses: ./.github/actions/get-commit-msg
|
|
- name: Prerequisites
|
|
run: pip install tifffile numpy
|
|
- name: Run update script
|
|
env:
|
|
GH_TOKEN: ${{ secrets.FILAMENTBOT_TOKEN }}
|
|
run: |
|
|
GOLDEN_BRANCH=$(echo "${{ steps.get_commit_msg.outputs.msg }}" | python3 test/renderdiff/src/commit_msg.py)
|
|
COMMIT_HASH="${{ steps.get_commit_msg.outputs.hash }}"
|
|
if [[ "${GOLDEN_BRANCH}" != "main" ]]; then
|
|
git config --global user.email "filament.bot@gmail.com"
|
|
git config --global user.name "Filament Bot"
|
|
git config --global credential.helper cache
|
|
echo "branch==${GOLDEN_BRANCH}"
|
|
echo "hash==${COMMIT_HASH}"
|
|
python3 test/renderdiff/src/update_golden.py --branch=${GOLDEN_BRANCH} \
|
|
--merge-to-main --filament-tag=${COMMIT_HASH} --golden-repo-token=${GH_TOKEN}
|
|
fi
|
|
|
|
update-docs:
|
|
name: update-docs
|
|
runs-on: 'ubuntu-24.04-4core'
|
|
steps:
|
|
- uses: actions/checkout@v4.1.6
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: ./.github/actions/linux-prereq
|
|
- id: get_commit_msg
|
|
uses: ./.github/actions/get-commit-msg
|
|
- name: Prerequisites
|
|
run: pip install selenium
|
|
- name: Run update script
|
|
env:
|
|
GH_TOKEN: ${{ secrets.FILAMENTBOT_TOKEN }}
|
|
run: |
|
|
bash docs_src/build/install_mdbook.sh && source ~/.bashrc
|
|
COMMIT_HASH="${{ steps.get_commit_msg.outputs.hash }}"
|
|
git config --global user.email "filament.bot@gmail.com"
|
|
git config --global user.name "Filament Bot"
|
|
git config --global credential.helper cache
|
|
bash docs_src/build/postsubmit.sh ${COMMIT_HASH} ${GH_TOKEN}
|