Skip to content

Commit

Permalink
auto pr
Browse files Browse the repository at this point in the history
  • Loading branch information
metasansana committed Aug 14, 2023
1 parent 1c2e3fd commit 7bdc1f0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: cibuild
on:
push

jobs:
myci:
runs-on: ubuntu-latest
steps:
- uses: quenktechnologies/.github/actions/node/build@master
- name: Create Pull Request
id: create_pr
run: |
TOKEN="${{ secrets.GITHUB_TOKEN }}"
BRANCH_NAME=$(git symbolic-ref --short HEAD)
RESPONSE=$(curl -X POST \
-H "Authorization: token $TOKEN" \
-d "{\"title\": \"Auto Pull Request\", \"head\": \"$BRANCH_NAME\", \"base\": \"master\"}" \
https://api.github.com/repos/$GITHUB_REPOSITORY/pulls)
PR_URL=$(echo "$RESPONSE" | jq -r '.html_url')
echo "Pull request created: $PR_URL"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 0 additions & 9 deletions .github/workflows/cxbuild.yml

This file was deleted.

0 comments on commit 7bdc1f0

Please sign in to comment.