Skip to content

Fix compare_snapshot CI #302

Fix compare_snapshot CI

Fix compare_snapshot CI #302

Workflow file for this run

name: Compare Snapshot
on: pull_request
permissions:
pull-requests: write
jobs:
compare-snapshot:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x" # Specify the Python version required
- 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}}
run: |
result=$(python scripts/compare_snapshot.py)
result=$(echo "$result" | tail -n +3) # Strip the first two lines
result="${result//'%'/'%25'}"
result="${result//$'\n'/'%0A'}"
result="${result//$'\r'/'%0D'}"
echo "::set-output name=result::${result}"