Skip to content

Commit

Permalink
ci: update ci name from tests to lint (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuan325 authored Jun 11, 2024
1 parent 7b51209 commit 8610f1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: tests
name: lint
on:
pull_request:
paths-ignore:
Expand All @@ -34,8 +34,8 @@ permissions: read-all

jobs:
integration:
# run job on proper workflow event triggers (skip job for pull_request event from forks and only run pull_request_target for "tests: run" label)
if: "${{ (github.event.action != 'labeled' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) || github.event.label.name == 'tests: run' }}"
# run job on proper workflow event triggers (skip job for pull_request event from forks and only run pull_request_target for "lint: run" label)
if: "${{ (github.event.action != 'labeled' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) || github.event.label.name == 'lint: run' }}"
name: ${{ matrix.dir }}
runs-on: ubuntu-latest
strategy:
Expand All @@ -49,14 +49,14 @@ jobs:
pull-requests: write
steps:
- name: Remove PR label
if: "${{ github.event.action == 'labeled' && github.event.label.name == 'tests: run' }}"
if: "${{ github.event.action == 'labeled' && github.event.label.name == 'lint: run' }}"
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
try {
await github.rest.issues.removeLabel({
name: 'tests: run',
name: 'lint: run',
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: tests
name: lint
on:
pull_request:
paths:
Expand All @@ -30,4 +30,4 @@ jobs:
contents: none

steps:
- run: echo "No tests required."
- run: echo "No lint required."

0 comments on commit 8610f1f

Please sign in to comment.