docs: [JS] add IAS App-to-App #39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: auto fix lint | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| fix-lint: | |
| if: github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| token: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }} | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci | |
| - run: npm run lint:fix | |
| - name: Commit Changes if needed | |
| run: | | |
| diff=`git diff` | |
| if [ ! -z "$diff" ]; then | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "cloud-sdk-js" | |
| git commit -m "fix: Changes from lint" -a | |
| git push | |
| fi |