Skip to content

Commit

Permalink
add automation to create a release PR
Browse files Browse the repository at this point in the history
  • Loading branch information
karan-batavia committed Jun 19, 2024
1 parent 4eeb969 commit c384a4b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/release_pr_automation.yml
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 }}
2 changes: 1 addition & 1 deletion .github/workflows/upstream_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit c384a4b

Please sign in to comment.