feat(l1): ethrex_replay
add new command to create cache for block
#1342
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
# .github/workflows/set-pr-status.yml | |
name: PR Status | |
on: | |
pull_request: | |
types: | |
[ | |
opened, | |
reopened, | |
synchronize, | |
edited, | |
ready_for_review, | |
converted_to_draft, | |
] | |
pull_request_review: | |
types: [submitted] | |
jobs: | |
update-project-status: | |
name: Update PR status for ethrex_l1 project | |
runs-on: ubuntu-latest | |
# sadly pull_request_review doesn't have direct access to labels information so we'll have to check this later. | |
if: github.event_name == 'pull_request_review' || contains(github.event.pull_request.labels.*.name, 'L1') | |
permissions: | |
contents: read | |
pull-requests: write | |
issues: write | |
steps: | |
- name: Generate GitHub App Token | |
id: generate_token | |
uses: actions/create-github-app-token@v2 | |
with: | |
app-id: ${{ vars.PROJECT_SYNC_APP_ID }} | |
private-key: ${{ secrets.PROJECT_SYNC_PRIVATE_KEY }} | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Update PR status | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{ steps.generate_token.outputs.token }} | |
script: | | |
const script = require('./.github/scripts/set-pr-status.js'); | |
await script({github, context}); |