We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2f5597 commit 16ac9f9Copy full SHA for 16ac9f9
.github/workflows/sync-demo.yml
@@ -17,6 +17,16 @@ jobs:
17
ref: main
18
token: ${{ secrets.GITHUB_TOKEN }}
19
20
+ - name: Create demo branch if it doesn't exist
21
+ run: |
22
+ if ! git ls-remote --heads origin demo | grep -q demo; then
23
+ echo "Creating demo branch..."
24
+ git checkout -b demo
25
+ git push origin demo
26
+ else
27
+ echo "Demo branch already exists"
28
+ fi
29
+
30
- name: Checkout demo branch
31
uses: actions/checkout@v4
32
with:
0 commit comments