renderdiff: enable update goldens on commit merge #22
Workflow file for this run
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: | |
# pull_request: | |
# branches: | |
# - main | |
# 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: Run update script | |
# 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 | tr -d 'commit ') | |
# if [[ "${GOLDEN_BRANCH}" != "main" ]]; then | |
# python3 test/renderdiff/src/update_golden.py --branch=${GOLDEN_BRANCH} \ | |
# --merge-to-main --filament-tag=${COMMIT_HASH} | |
# cd filament-assets | |
# git checkout ${GOLDEN_BRANCH} | |
# git log -1 | |
# fi |