Skip to content

Commit

Permalink
ci: create PR after tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Nov 23, 2023
1 parent af478d9 commit 0c909a1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions azure-pipelines-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,19 @@ steps:
AZURE_STORAGE_RESOURCE_GROUP: $(AZURE_STORAGE_RESOURCE_GROUP)
AZURE_SUBSCRIPTION_ID: $(AZURE_SUBSCRIPTION_ID)
FPJS_PRE_SHARED_SECRET: $(FPJS_PRE_SHARED_SECRET)

- script: |
curl -X POST \
-H "Authorization: token $TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/$USER/$REPO/pulls \
-d '{"title":"'"$PR_TITLE"'","body":"'"$PR_BODY"'","head":"'"$HEAD_BRANCH"'","base":"'"$BASE_BRANCH"'"}'
displayName: Create PR from test to main branch
env:
TOKEN: $(GITHUB_TOKEN)
USER: fingerprintjs
REPO: fingerprint-pro-azure-integration
PR_TITLE: New release
PR_BODY: New release from $(TAG)
HEAD_BRANCH: $(TAG)
BASE_BRANCH: main

0 comments on commit 0c909a1

Please sign in to comment.