From 17f55af0bb7229be6c228139da14bfbf5de55762 Mon Sep 17 00:00:00 2001 From: K Agajanian Date: Wed, 21 Aug 2024 12:29:03 -0600 Subject: [PATCH] token? --- .github/workflows/main.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e2fe279..8b8000e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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" @@ -25,12 +27,13 @@ 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 }} @@ -38,10 +41,11 @@ jobs: - 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] "