Skip to content

Commit 7130b17

Browse files
get branch name for base
1 parent 3e25178 commit 7130b17

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/update-snippets.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Generate Snippets
22
'on':
33
push:
4-
tags:
5-
- '*'
64
workflow_dispatch: null
75
jobs:
86
generate-snippets:
@@ -12,6 +10,10 @@ jobs:
1210
- name: Generate Snippets
1311
run: |
1412
./scripts/make_mdx.sh snippets/destination_connectors snippets/source_connectors
13+
- name: Extract Branch Name
14+
id: extract-branch
15+
shell: bash
16+
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
1517
- name: Create Pull Request
1618
uses: peter-evans/create-pull-request@v5
1719
with:
@@ -26,4 +28,4 @@ jobs:
2628
delete-branch: true
2729
body: |
2830
This automated pull request includes updated code snippets.
29-
base: ${{ github.ref }}
31+
base: ${{ steps.extract-branch.outputs.branch }}

0 commit comments

Comments
 (0)