Skip to content

feat: v2.3.0-rc0, clean and sort codebase, add documentation #473

feat: v2.3.0-rc0, clean and sort codebase, add documentation

feat: v2.3.0-rc0, clean and sort codebase, add documentation #473

Workflow file for this run

name: Compare Snapshot
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
pull-requests: write
jobs:
compare-snapshot:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Set up Scarb
uses: software-mansion/setup-scarb@v1
with:
scarb-version: 0.7.0
- name: Run compare_snapshot script
id: run-script
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
continue-on-error: true
run: |
result=$(python scripts/compare_snapshot.py 2>&1)
status=$(echo "$result" | tail -n 1 | awk -F ':' '{print $1}')
echo "$result" >> "$GITHUB_STEP_SUMMARY"
echo "status=$status" >> "$GITHUB_OUTPUT"
- name: Exit step based on status
if: steps.run-script.outputs.status == 'ERROR'
run: exit 1