From d2dc0f963321805f098fbc82c9b7329eb69645b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A2=E3=83=AC=E3=82=AF=E3=82=B5=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=2Eeth?= Date: Wed, 9 Oct 2024 06:22:20 +0900 Subject: [PATCH 1/2] chore: empty string test --- build/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/index.ts b/build/index.ts index e1cf0b8..1b0be7a 100644 --- a/build/index.ts +++ b/build/index.ts @@ -2,3 +2,5 @@ import * as dotenv from "dotenv"; // load environment variables (if you have them) dotenv.config(); console.log("Welcome to ts-template"); + +const _EMPTY_STRING_TEST = ""; From 37d8bd4a06774d9a296eec9e013276b5af6213cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A2=E3=83=AC=E3=82=AF=E3=82=B5=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=2Eeth?= Date: Wed, 9 Oct 2024 06:27:02 +0900 Subject: [PATCH 2/2] chore: empty string test --- .github/workflows/no-empty-strings.yml | 12 ++++++++++++ .github/workflows/sync-template.yml | 4 +--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/no-empty-strings.yml b/.github/workflows/no-empty-strings.yml index 41f1f1c..d40b600 100644 --- a/.github/workflows/no-empty-strings.yml +++ b/.github/workflows/no-empty-strings.yml @@ -1,5 +1,9 @@ name: Check for Empty Strings +permissions: + contents: read + id-token: write + on: pull_request: types: [opened, synchronize, reopened] @@ -8,6 +12,14 @@ jobs: check-empty-strings: runs-on: ubuntu-latest steps: + - name: Debug - Check if APP_ID is set + run: | + if [ -n "${{ secrets.APP_ID }}" ]; then + echo "APP_ID is set" + else + echo "APP_ID is not set" + fi + - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/sync-template.yml b/.github/workflows/sync-template.yml index dc92ad5..274b2ea 100644 --- a/.github/workflows/sync-template.yml +++ b/.github/workflows/sync-template.yml @@ -23,7 +23,7 @@ jobs: with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - + - name: Sync branch to template env: GH_TOKEN: ${{ steps.get_installation_token.outputs.token }} @@ -45,5 +45,3 @@ jobs: git commit -m "chore: sync template" git push "$original_remote" "$pr_branch" gh pr create --title "Sync branch to template" --body "This pull request merges changes from the template repository." --head "$pr_branch" --base "$branch_name" - -