Skip to content

Commit 706393b

Browse files
authored
Create a release PR in setup-cli repo on tag push (#827)
## Changes Create a release PR in setup-cli repo on tag push
1 parent aa54a86 commit 706393b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,27 @@ jobs:
2929
args: release
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
create-release-prs:
34+
needs: goreleaser
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Set VERSION variable from tag
38+
run: |
39+
VERSION=${{ github.ref_name }}
40+
echo "VERSION=${VERSION:1}" >> $GITHUB_ENV
41+
42+
- name: Update setup-cli
43+
uses: actions/github-script@v6
44+
with:
45+
github-token: ${{ secrets.DECO_GITHUB_TOKEN }}
46+
script: |
47+
await github.rest.actions.createWorkflowDispatch({
48+
owner: 'databricks',
49+
repo: 'setup-cli',
50+
workflow_id: 'release-pr.yml',
51+
ref: 'main',
52+
inputs: {
53+
version: "${{ env.VERSION }}",
54+
}
55+
});

0 commit comments

Comments
 (0)