Skip to content

Add Turkchain (Chain ID 1919) #2152

Add Turkchain (Chain ID 1919)

Add Turkchain (Chain ID 1919) #2152

name: check-warp-deploy
on:
# Triggers the workflow on pull request events
pull_request:
jobs:
check-warp-deploy:
permissions:
# require PR write perms to be able to comment on the PR
pull-requests: write
runs-on: ubuntu-latest
steps:
# Skip token generation for fork PRs (they don't have access to secrets)
- name: Generate GitHub App Token
id: generate-token
if: github.event.pull_request.head.repo.full_name == github.repository
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.HYPER_GONK_APP_ID }}
private-key: ${{ secrets.HYPER_GONK_PRIVATE_KEY }}
- uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Determine Base & Head SHA
id: determine-base-sha
run: |
echo "base_sha=${{ github.event.pull_request.base.sha }}" >> $GITHUB_OUTPUT
echo "current_sha=${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
- name: Check Warp Deploy
env:
# Only set PR_NUMBER for non-fork PRs (enables PR commenting)
PR_NUMBER: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.number || '' }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
./scripts/check-warp-deploy.sh ${{ steps.determine-base-sha.outputs.base_sha }} ${{ steps.determine-base-sha.outputs.current_sha }}