feat: update memory with new active segment #417
Workflow file for this run
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
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}} | |
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 "${result}" >> $GITHUB_STEP_SUMMARY |