diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8098fa5..a60ec60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,6 +50,7 @@ jobs: with: command: generate api-key: ${{ secrets.GEMINI_API_KEY }} + github-token: ${{ secrets.GITHUB_TOKEN }} - name: Create and push tag run: | diff --git a/.github/workflows/structlint.yml b/.github/workflows/structlint.yml deleted file mode 100644 index eee1d7b..0000000 --- a/.github/workflows/structlint.yml +++ /dev/null @@ -1,69 +0,0 @@ -name: StructLint - -on: - workflow_call: - inputs: - config: - description: "Path to .structlint.yaml config file" - type: string - default: ".structlint.yaml" - path: - description: "Directory to validate" - type: string - default: "." - json-output: - description: "Path to write JSON report" - type: string - default: "" - log-level: - description: "Log level: debug, info, warn, error" - type: string - default: "info" - silent: - description: "Silent mode - only exit code" - type: boolean - default: false - version: - description: "Version of structlint to use" - type: string - default: "" - upload-report: - description: "Upload JSON report as artifact" - type: boolean - default: false - comment-on-pr: - description: "Post validation results as a PR comment" - type: boolean - default: false - secrets: - github_token: - description: "GitHub token for PR comments (required if comment-on-pr is true)" - required: false - -permissions: - contents: read - pull-requests: write - -jobs: - validate: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: AxeForging/structlint@main - with: - config: ${{ inputs.config }} - path: ${{ inputs.path }} - json-output: ${{ inputs.json-output }} - log-level: ${{ inputs.log-level }} - silent: ${{ inputs.silent }} - version: ${{ inputs.version }} - comment-on-pr: ${{ inputs.comment-on-pr }} - GITHUB_TOKEN: ${{ secrets.github_token || github.token }} - - - name: Upload report - if: ${{ inputs.upload-report && inputs.json-output != '' }} - uses: actions/upload-artifact@v4 - with: - name: structlint-report - path: ${{ inputs.json-output }}