Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Update upstream-sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
iomekam authored Aug 16, 2024
1 parent 7cb3685 commit 46e79b0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/upstream-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,11 @@ jobs:
# Remove files not on the remote
rm -rf .github/workflows
echo "branch name"
echo env.UPSTREAM_SYNC_BRANCH_NAME
# Check if the deploy branch exists on the remote
if git ls-remote --exit-code --heads origin ${{ env.UPSTREAM_SYNC_BRANCH_NAME }}; then
# Mirror remote workflows if they exist
if git ls-tree --name-only -r origin/${{ vars.UPSTREAM_SYNC_BRANCH_NAME }}:.github/workflows &> /dev/null; then
echo "checkout out"
git checkout origin/${{ vars.UPSTREAM_SYNC_BRANCH_NAME }} .github/workflows
if git ls-tree --name-only -r origin/${{ env.UPSTREAM_SYNC_BRANCH_NAME }}:.github/workflows &> /dev/null; then
git checkout origin/${{ env.UPSTREAM_SYNC_BRANCH_NAME }} .github/workflows
fi
fi
Expand Down

0 comments on commit 46e79b0

Please sign in to comment.