mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-04-29 04:00:13 +00:00
Use skyvern's custom sync GH action (#77)
This commit is contained in:
parent
7dc235ed1b
commit
4e0ec5b7d5
1 changed files with 17 additions and 1 deletions
18
.github/workflows/sync-skyvern-cloud.yml
vendored
18
.github/workflows/sync-skyvern-cloud.yml
vendored
|
|
@ -10,7 +10,23 @@ jobs:
|
|||
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)
|
||||
echo "PR_BODY=$PR_BODY" >> $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: BetaHuhn/repo-file-sync-action@v1
|
||||
uses: Skyvern-AI/repo-file-sync-action@main
|
||||
with:
|
||||
GH_PAT: ${{ secrets.SKYVERN_CLOUD_GH_PAT }}
|
||||
BRANCH_NAME: ${{ steps.pr_details.outputs.BRANCH_NAME }}
|
||||
PR_BODY: ${{ steps.pr_details.outputs.PR_BODY }}
|
||||
PR_TITLE: ${{ steps.pr_details.outputs.PR_TITLE }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue