Skip to content

Commit

Permalink
token?
Browse files Browse the repository at this point in the history
  • Loading branch information
Erutis committed Aug 21, 2024
1 parent 44233b5 commit 17f55af
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ jobs:
check-sql-schema-changes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout Main Branch
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: tj-actions/changed-files@v44
- name: Check For Changes
id: changed-db-files
uses: tj-actions/changed-files@v44
with:
files: |
- "../app"
Expand All @@ -25,23 +27,25 @@ jobs:
- name: Generate branch name
id: generate-branch-name
run: |
TIMESTAMP=$(date +'%Y%m%d%H%M%S')
TIMESTAMP=$(date +'%Y%m%d%H%M')
BRANCH_NAME="my-branch-$TIMESTAMP"
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
- name: Checkout new branch
id: checkout-new-branch
permissions: write
run: |
git checkout -b ${{ env.BRANCH_NAME }}
git push origin ${{ env.BRANCH_NAME }}
- name: Create PR
id: create-pull-request
uses: peter-evans/create-pull-request@v5
permissions: write
with:
branch: ${{ env.BRANCH_NAME }}
base: main
title: "Create a new branch"
title: "Create a new PR"
author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"


Expand Down

0 comments on commit 17f55af

Please sign in to comment.