introduce db timeout (#1222) #1001
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: Sync to skyvern-cloud | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@master | |
- name: Fetch PR details | |
id: pr_details | |
run: | | |
PR_NUMBER=$(gh pr list --state merged --base main --limit 1 --json number --jq .[0].number) | |
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_OUTPUT | |
BRANCH_NAME=$(gh pr view $PR_NUMBER --json headRefName --jq .headRefName) | |
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_OUTPUT | |
PR_BODY=$(gh pr view $PR_NUMBER --json body --jq .body) | |
PR_BODY_ESCAPED=$(echo "$PR_BODY" | jq -aRs .) | |
echo "PR_BODY=$PR_BODY_ESCAPED" >> $GITHUB_OUTPUT | |
PR_TITLE=$(gh pr view $PR_NUMBER --json title --jq .title) | |
echo "PR_TITLE=$PR_TITLE" >> $GITHUB_OUTPUT | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run GitHub File Sync | |
uses: Skyvern-AI/repo-file-sync-action@main | |
with: | |
GH_PAT: ${{ secrets.SKYVERN_CLOUD_GH_PAT }} | |
GIT_EMAIL: [email protected] | |
GIT_USERNAME: Shuchang Zheng | |
BRANCH_NAME: repo-sync/${{ steps.pr_details.outputs.BRANCH_NAME }} | |
PR_BODY: ${{ steps.pr_details.outputs.PR_BODY }} | |
PR_TITLE: ${{ steps.pr_details.outputs.PR_TITLE }} |