ci: setup env using actions/setup (#478)

* ci: setup env using actions/setup

Signed-off-by: Andy Lee <andy.lee@suse.com>

* ci: rerun lint if PR force push

Signed-off-by: Andy Lee <andy.lee@suse.com>

---------

Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
Andy Lee 2025-08-25 18:04:32 +08:00 committed by GitHub
parent db29a7c31b
commit fc31b4bb9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View File

@ -19,11 +19,8 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ref: ${{ github.base_ref }} ref: ${{ github.base_ref }}
- name: Setup Nodejs with yarn caching - name: Setup Nodejs and yarn install
uses: actions/setup-node@v4 uses: ./.github/actions/setup
with:
node-version-file: '.nvmrc'
cache: yarn
- name: Set PR label - name: Set PR label
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -7,7 +7,7 @@ on:
- main - main
- 'release-*' - 'release-*'
pull_request: pull_request:
types: [opened, reopened, edited] types: [opened, reopened, edited, synchronize]
branches: branches:
- main - main
- 'release-*' - 'release-*'