Skip to content

Commit

Permalink
Merge pull request #25 from portefaix/feat/cicd-actions
Browse files Browse the repository at this point in the history
New Github Actions : Prow, Size, Renovate
  • Loading branch information
nlamirault committed Apr 27, 2021
2 parents ac5896e + 180adfd commit f95fcd7
Show file tree
Hide file tree
Showing 8 changed files with 95 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/opa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Open Policy Agent
name: Open Policy Agent / Tests

on:
push:
branches:
- master
# paths:
# - "policy/**"
paths:
- "policy/**"
pull_request:
branches:
- master
# paths:
# - "policy/**"
paths:
- "policy/**"

jobs:
opa:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prow-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: "Label PRs from globs"
name: Prow / Pull Request Labeler
on:
schedule:
- cron: "0 * * * *"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prow-lgtm-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: "Merge on lgtm label"
name: Prow / Merge on lgtm label
on:
schedule:
- cron: "0 * * * *"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prow-lgtm-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: "Run Jobs on PR"
name: Prow / Run Jobs on PR
on: pull_request

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: "Prow github actions"
name: Prow / Github Actions
on:
issue_comment:
types: [created]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Release Drafter
name: Project / Release Drafter

on:
push:
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright (C) 2021 Nicolas Lamirault <nicolas.lamirault@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Renovate / Helm releases

on:
workflow_dispatch:
schedule:
- cron: "0 * * * *"

jobs:
renovate-helmrelease:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1

# - name: Update Helm Releases
# run: |
# docker-compose run -T --rm builder bootstrap/renovate-helm-releases.sh

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-auto-update
delete-branch: true
title: Auto-update pre-commit hooks
signoff: true
committer: "Nicolas Lamirault <nlamirault@users.noreply.github.com>"
author: "Nicolas Lamirault <nlamirault@users.noreply.github.com>"
commit-message: Auto-update pre-commit hooks
body: |
Signed-off-by: Nicolas Lamirault <nlamirault@users.noreply.github.com>
labels: dependencies, merge
38 changes: 38 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright (C) 2021 Nicolas Lamirault <nicolas.lamirault@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Project / Size PR

on:
pull_request:
types: [opened, synchronize]

jobs:
update_labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-ecosystem/action-size@v2
id: size

- uses: actions-ecosystem/action-remove-labels@v1
with:
github_token: ${{ secrets.github_token }}
labels: ${{ steps.size.outputs.stale_labels }}

- uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.github_token }}
labels: ${{ steps.size.outputs.new_label }}

0 comments on commit f95fcd7

Please sign in to comment.