Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI updates #1406

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]'
20 changes: 18 additions & 2 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: 10
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')"

Expand Down Expand Up @@ -74,9 +78,21 @@ jobs:
&& github.event_name == 'push'
&& ( github.ref_type == 'tag' || github.ref_name == 'master' )

- 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
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.2.14/c2cciutils/schema.json
# yaml-language-server: $schema=https://raw.githubusercontent.com/camptocamp/c2cciutils/1.2/c2cciutils/schema.json

publish:
pypi:
Expand Down