Skip to content

Commit

Permalink
get branch name for base
Browse files Browse the repository at this point in the history
  • Loading branch information
ryannikolaidis committed Apr 18, 2024
1 parent 3e25178 commit 7130b17
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/update-snippets.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Generate Snippets
'on':
push:
tags:
- '*'
workflow_dispatch: null
jobs:
generate-snippets:
Expand All @@ -12,6 +10,10 @@ jobs:
- name: Generate Snippets
run: |
./scripts/make_mdx.sh snippets/destination_connectors snippets/source_connectors
- name: Extract Branch Name
id: extract-branch
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
Expand All @@ -26,4 +28,4 @@ jobs:
delete-branch: true
body: |
This automated pull request includes updated code snippets.
base: ${{ github.ref }}
base: ${{ steps.extract-branch.outputs.branch }}

0 comments on commit 7130b17

Please sign in to comment.