Skip to content

Commit

Permalink
Use skyvern's custom sync GH action (Skyvern-AI#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykeremy authored Mar 15, 2024
1 parent 7dc235e commit 4e0ec5b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/sync-skyvern-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 4e0ec5b

Please sign in to comment.