Skip to content

Commit

Permalink
Merge pull request #76 from gentlementlegen/fix/string-action
Browse files Browse the repository at this point in the history
fix: check env variables and default if missing
  • Loading branch information
gentlementlegen authored Nov 10, 2024
2 parents a5e7ef7 + f06142c commit 201b742
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/no-empty-strings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,23 @@ jobs:
with:
node-version: "20.10.0"
- name: Get GitHub App token
if: ${{ env.APP_ID && env.APP_PRIVATE_KEY }}
uses: tibdex/github-app-token@v1.7.0
id: get_installation_token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
env:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
- name: Install Dependencies
run: |
yarn add tsx simple-git
- name: Check for Empty Strings
run: |
yarn tsx .github/empty-string-checker.ts
env:
GITHUB_TOKEN: ${{ steps.get_installation_token.outputs.token }}
GITHUB_TOKEN: ${{ steps.get_installation_token.outputs.token || secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
GITHUB_BASE_REF: ${{ github.base_ref }}

0 comments on commit 201b742

Please sign in to comment.