Skip to content

Commit

Permalink
ci: Fix workflows (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
ginokent authored Jun 6, 2024
2 parents 834c015 + f420ff4 commit 79b2dc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/go-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
# NO paths-ignore
workflow_dispatch:
inputs: {}
schedule:
- cron: '0 2 * * *' # NOTE: Run daily at 11:00 JST

# NOTE: If commit & push continuously, cancel the workflow other than the latest commit.
concurrency:
Expand All @@ -35,19 +37,18 @@ jobs:
outputs:
skip: ${{ steps.paths-ignore.outputs.skip }}
steps:
- uses: kunitsucom/github-actions-paths-ignore-alternative@main
- uses: kunitsucom/github-actions-paths-ignore-alternative@v0.0.2
id: paths-ignore
with:
paths-ignore: |-
# substrings of file paths to ignore written in regular expressions
^.github/
^.*\.md$
^.*\.log$
^.github/dependabot.yml$
^.github/pull_request_template.md$
^.github/release.yml$
^.github/workflows/label-checker.yml$
^.github/workflows/task-list-checker.yml$
^.*\.md$
^.*\.log$
^CREDITS$
# > Note: A job that is skipped will report its status as "Success".
# > It will not prevent a pull request from merging, even if it is a required check.
Expand Down Expand Up @@ -135,3 +136,4 @@ jobs:
working-directory: ${{ env.WORKDIR }}
args: --timeout=600s
version: latest # or v${{ env.GOLANGCI_LINT_VERSION }}
skip-cache: true
9 changes: 4 additions & 5 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,18 @@ jobs:
outputs:
skip: ${{ steps.paths-ignore.outputs.skip }}
steps:
- uses: kunitsucom/github-actions-paths-ignore-alternative@main
- uses: kunitsucom/github-actions-paths-ignore-alternative@v0.0.2
id: paths-ignore
with:
paths-ignore: |-
# substrings of file paths to ignore written in regular expressions
^.github/
^.*\.md$
^.*\.log$
^.github/dependabot.yml$
^.github/pull_request_template.md$
^.github/release.yml$
^.github/workflows/label-checker.yml$
^.github/workflows/task-list-checker.yml$
^.*\.md$
^.*\.log$
^CREDITS$
# > Note: A job that is skipped will report its status as "Success".
# > It will not prevent a pull request from merging, even if it is a required check.
Expand Down Expand Up @@ -151,7 +150,7 @@ jobs:
working-directory: ${{ env.WORKDIR }}
shell: bash
run: |
set -Eeux -o pipefail
set -Eeu -o pipefail -x
direnv allow .
if [ -n "${GITHUB_TOKEN-}" ]; then
direnv exec . bash -Eeux -o pipefail -c 'echo "${GOPRIVATE:-}${GOPRIVATE+,}" | while read -d , -r LINE; do echo "set git config: ${LINE}"; git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@${LINE}".insteadOf "https://${LINE}"; done'
Expand Down

0 comments on commit 79b2dc4

Please sign in to comment.