-
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.
Merge pull request #83 from dictyBase/feat/command-line-without-datab…
…ase-name Pulling feat/command-line-without-database-name into develop
- Loading branch information
Showing
4 changed files
with
92 additions
and
30 deletions.
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
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 |
---|---|---|
@@ -1,19 +1,17 @@ | ||
name: Create Pull Request | ||
on: create | ||
jobs: | ||
create-pr: | ||
runs-on: ubuntu-20.04 | ||
if: github.actor != 'dependabot[bot]' | ||
create-pull-request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: get branch name | ||
id: vars | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Create Pull Request | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
branch=$(echo ${{ github.ref }} | sed -r 's/refs\/heads\///') | ||
echo ::set-output name=branch::${branch} | ||
- name: pull-request | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
destination_branch: develop | ||
pr_title: Pulling ${{ steps.vars.outputs.branch }} into develop | ||
# Get current branch name | ||
branch_name=$(git symbolic-ref --short HEAD) | ||
# Create pull request using GitHub CLI | ||
gh pr create --base develop --title "Auto-generated Pull Request for $branch_name" --body "Pulling '$branch_name into develop. Please review and merge." | ||
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
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