Fix matp test typo #231
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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=$(echo "${{ steps.get_commit_msg.outputs.msg }}" | head -n 1 | sed "s/commit //g") | |
if [[ "${GOLDEN_BRANCH}" != "main" ]]; then | |
git config --global user.email "[email protected]" | |
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/[email protected] | |
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=$(echo "${{ steps.get_commit_msg.outputs.msg }}" | head -n 1 | sed "s/commit //g") | |
git config --global user.email "[email protected]" | |
git config --global user.name "Filament Bot" | |
git config --global credential.helper cache | |
bash docs_src/build/postsubmit.sh ${COMMIT_HASH} ${GH_TOKEN} |