Skip to content

Commit

Permalink
Exclude PR drafts from workflow targets
Browse files Browse the repository at this point in the history
  • Loading branch information
watal committed Feb 19, 2023
1 parent 7d0cfd1 commit 004c900
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: golangci-lint

on: [push]
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
types:
- opened
- reopened
- synchronize
- ready_for_review

jobs:
golangci:
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,19 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: CodeQL

on:
push:
branches: [ "main" ]
branches: [ 'main' ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
branches: [ 'main' ]
types:
- opened
- reopened
- synchronize
- ready_for_review
schedule:
- cron: '0 9 * * 1'

Expand Down Expand Up @@ -48,11 +53,11 @@ jobs:
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
Expand All @@ -61,7 +66,7 @@ jobs:
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/editerconfig-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ name: EditorConfig Checker

on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
types:
- opened
- reopened
- synchronize
- ready_for_review

jobs:
editorconfig:
Expand Down

0 comments on commit 004c900

Please sign in to comment.