Skip to content

Commit

Permalink
CI updates
Browse files Browse the repository at this point in the history
This is done by the automated script named upgrade-c2cciutils-to-1.7
  • Loading branch information
sbrunner committed Nov 28, 2023
1 parent 6b5effe commit 7f358f3
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,10 @@
matchPackageNames: ['shellcheck-py/shellcheck-py'],
versioning: 'regex:^v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)$',
},
/** Auto merge the GitHub action and pre-commit updates */
{
matchDatasources: ['github-actions', 'pre-commit'],
automerge: true,
},
],
}
23 changes: 23 additions & 0 deletions .github/workflows/delete-old-workflow-run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Delete old workflow runs

on:
schedule:
- cron: '0 0 * * *'

env:
HAS_SECRETS: ${{ secrets.HAS_SECRETS }}

jobs:
build:
name: Delete old workflow runs
runs-on: ubuntu-22.04
timeout-minutes: 25

steps:
- name: Delete old workflow runs
uses: MajorScruffy/[email protected]
with:
repository: ${{ github.repository }}
older-than-seconds: 43200000 # 500 days
env:
GITHUB_TOKEN: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/dependency-auto-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
name: Auto reviews updates
runs-on: ubuntu-22.04
timeout-minutes: 5
if: github.event.pull_request.user.login == 'renovate[bot]'

steps:
- uses: actions/github-script@v6
Expand All @@ -22,4 +23,3 @@ jobs:
pull_number: context.payload.pull_request.number,
event: 'APPROVE',
})
if: github.event.pull_request.user.login == 'renovate[bot]'
9 changes: 6 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ env:

jobs:
main:
runs-on: ubuntu-22.04
name: Continuous integration
runs-on: ubuntu-22.04
timeout-minutes: 20
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')"

Expand Down Expand Up @@ -54,8 +54,11 @@ jobs:
SKIP: helm-lock
- run: git diff && false
if: failure()
- name: Checks
run: c2cciutils-checks
- name: Print environment information
run: c2cciutils-env

env:
GITHUB_EVENT: ${{ toJson(github) }}

- name: Install helm
uses: azure/setup-helm@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
name: Pull request check
runs-on: ubuntu-22.04
timeout-minutes: 5
if: github.event.pull_request.user.login != 'renovate[bot]'

steps:
- run: pip install --upgrade attrs
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ repos:
- id: jsonschema-validator
files: ^ci/config\.yaml$
- repo: https://github.com/mheap/json-schema-spell-checker
rev: master
rev: main
hooks:
- id: json-schema-spell-checker
files: ^values\.schema\.json$
Expand Down

0 comments on commit 7f358f3

Please sign in to comment.