Fix workflow #4
This file contains 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
# This file was generated using Kotlin DSL (.github/workflows/fix_workflow.main.kts). | |
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file. | |
# Generated with https://github.com/typesafegithub/github-workflows-kt | |
name: 'Fix workflow' | |
on: | |
workflow_dispatch: {} | |
jobs: | |
check_yaml_consistency: | |
name: 'Check YAML consistency' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- id: 'step-0' | |
name: 'Check out' | |
uses: 'actions/checkout@v4' | |
- id: 'step-1' | |
name: 'Execute script' | |
run: 'rm ''.github/workflows/fix_workflow.yaml'' && ''.github/workflows/fix_workflow.main.kts''' | |
- id: 'step-2' | |
name: 'Consistency check' | |
run: 'git diff --exit-code ''.github/workflows/fix_workflow.yaml''' | |
fix-branch: | |
runs-on: 'ubuntu-latest' | |
needs: | |
- 'check_yaml_consistency' | |
if: '${{ github.ref_name != github.event.repository.default_branch }}' | |
steps: | |
- id: 'step-0' | |
name: 'Check out' | |
uses: 'actions/checkout@v4' | |
- id: 'step-1' | |
name: 'Setup Java' | |
uses: 'actions/setup-java@v4' | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- id: 'step-2' | |
name: 'Record Screenshots' | |
uses: 'gradle/gradle-build-action@v3' | |
with: | |
arguments: 'verifyAndRecordRoborazziDebug' | |
- id: 'step-3' | |
name: 'Commit Screenshots' | |
uses: 'stefanzweifel/git-auto-commit-action@v5' | |
with: | |
commit_message: '🤖 Updates screenshots' | |
file_pattern: '**/src/test/screenshots/*.png' | |
disable_globbing: 'true' |