forked from joernio/joern
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add automation to create a release PR
- Loading branch information
1 parent
4eeb969
commit c384a4b
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: sync to master | ||
on: | ||
push: | ||
branches: [backup_sync] | ||
workflow_dispatch: # allow to manually trigger this workflow | ||
jobs: | ||
create_pr: | ||
permissions: write-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: backup_sync | ||
|
||
- name: Create a PR from backup_sync to master | ||
run: gh pr create --repo Privado-Inc/joern -B master -H backup_sync --title 'Release PR' --body 'Created by Github action' | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
run: | | ||
echo "LATEST_TAG=$(curl -L \ | ||
-H "Accept: application/vnd.github+json" \ | ||
https://api.github.com/repos/joernio/joern/releases/latest | jq -r .name | sed 's/[v.]//g' )" >> $GITHUB_ENV | ||
https://api.github.com/repos/joernio/joern/releases/latest | jq -r .name | sed 's/[v]//g' | sed 's/[.]/-/g' )" >> $GITHUB_ENV | ||
- name: Create tag branch and merge upstream | ||
uses: peterjgrainger/[email protected] | ||
|