diff --git a/.github/workflows/lint-changed.yml b/.github/workflows/lint-changed.yml index c3b05d6..b420920 100644 --- a/.github/workflows/lint-changed.yml +++ b/.github/workflows/lint-changed.yml @@ -16,22 +16,19 @@ jobs: actions: write steps: - name: Create Token + if: github.event_name != 'pull_request' id: create_token uses: tibdex/github-app-token@v2.1.0 with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} - name: Checkout code - continue-on-error: true uses: actions/checkout@main with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }} - token: ${{ steps.create_token.outputs.token }} - # env: - # GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} + token: ${{ steps.create_token.outputs.token || secrets.WORKFLOW_TOKEN }} - name: Super-linter - continue-on-error: true uses: super-linter/super-linter@main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -90,7 +87,6 @@ jobs: FIX_YAML_PRETTIER: true - name: Push fixed - continue-on-error: true uses: stefanzweifel/git-auto-commit-action@master with: branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}