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 fa3bc61 commit 8ab53cf
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,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,
},
],
}
14 changes: 12 additions & 2 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:

jobs:
audit:
runs-on: ubuntu-22.04
name: Audit
runs-on: ubuntu-22.04
timeout-minutes: 15

strategy:
Expand Down Expand Up @@ -54,7 +54,17 @@ jobs:
if: failure()
- run: python --version

- name: Audit
- name: Snyk audit
run: ~/.venv/bin/c2cciutils-audit --branch=${{ matrix.branch }}
env:
GITHUB_TOKEN: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}
- name: Check ci/dpkg-versions.yaml file existence
id: dpkg-versions
uses: andstor/file-existence-action@v2
with:
files: ci/dpkg-versions.yaml
- name: Update dpkg packages versions
run: ~/.venv/bin/c2cciutils-docker-versions-update --branch=${{ matrix.branch }}
if: steps.dpkg-versions.outputs.files_exists == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ env:

jobs:
backport:
runs-on: ubuntu-22.04
name: Backport
runs-on: ubuntu-22.04
timeout-minutes: 5

steps:
Expand Down
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]'
7 changes: 4 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ env:

jobs:
not-failed-backport:
runs-on: ubuntu-22.04
name: Test that's not a failed backport
runs-on: ubuntu-22.04
timeout-minutes: 5

steps:
- run: 'false'
if: github.event.head_commit.message == '[skip ci] Add instructions to finish the backport.'

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

Expand Down Expand Up @@ -219,8 +220,8 @@ jobs:
if: env.HAS_SECRETS == 'HAS_SECRETS'

gh-pages:
runs-on: ubuntu-22.04
name: Github Pages
runs-on: ubuntu-22.04
timeout-minutes: 10
concurrency: gh-pages-push
needs:
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

0 comments on commit 8ab53cf

Please sign in to comment.