Skip to content

Diverse improvements #17

Diverse improvements

Diverse improvements #17

name: Empty String Check
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
check-for-empty-strings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.10.0"
- name: Get GitHub App token
if: ${{ secrets.APP_ID && secrets.PRIVATE_KEY }}

Check failure on line 17 in .github/workflows/no-empty-strings.yml

View workflow run for this annotation

GitHub Actions / Empty String Check

Invalid workflow file

The workflow is not valid. .github/workflows/no-empty-strings.yml (Line: 17, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.APP_ID && secrets.PRIVATE_KEY
uses: tibdex/[email protected]
id: get_installation_token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: oven-sh/setup-bun@v2
- name: Install Dependencies
run: |
bun add -D simple-git
- name: Check for Empty Strings
run: |
bun .github/empty-string-checker.ts
env:
GITHUB_TOKEN: ${{ steps.get_installation_token.outputs.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
GITHUB_BASE_REF: ${{ github.base_ref }}