Skip to content

Commit

Permalink
Merge pull request #1404 from camptocamp/c2cciutils-upgrade-1.4
Browse files Browse the repository at this point in the history
CI updates
  • Loading branch information
sbrunner authored Nov 30, 2023
2 parents d99bd21 + 261abcf commit 4d2e2af
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 45 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/changelog.yaml

This file was deleted.

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]'
22 changes: 19 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ on:
- example-project/**
pull_request:

permissions:
actions: write
contents: write

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

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

Expand Down Expand Up @@ -68,9 +72,21 @@ jobs:
if: |
env.HAS_SECRETS == 'HAS_SECRETS'
- name: Trigger changelog workflow
uses: actions/github-script@v7
with:
script: |-
if (process.env.GITHUB_REF_TYPE == 'tag') {
console.log('Trigger changelog');
await github.rest.repos.createDispatchEvent({
owner: 'camptocamp',
repo: 'helm-mutualize',
event_type: 'changelog',
});
}
k8s:
runs-on: ubuntu-22.04
name: Kubernetes
runs-on: ubuntu-22.04
timeout-minutes: 20
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')"

Expand Down Expand Up @@ -108,8 +124,8 @@ jobs:
if: always()

audit:
runs-on: ubuntu-22.04
name: Audit
runs-on: ubuntu-22.04
timeout-minutes: 10
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')"

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 @@ -18,6 +18,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 ci/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/camptocamp/c2cciutils/1.6.11/c2cciutils/schema.json
# yaml-language-server: $schema=https://raw.githubusercontent.com/camptocamp/c2cciutils/1.6.0/c2cciutils/schema.json

checks:
codespell:
Expand Down

0 comments on commit 4d2e2af

Please sign in to comment.