Skip to content

Commit

Permalink
Merge pull request #2010 from camptocamp/c2cciutils-upgrade-5.2
Browse files Browse the repository at this point in the history
CI updates
  • Loading branch information
sbrunner committed Oct 10, 2023
2 parents 7e701c0 + 6177902 commit a30175c
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 203 deletions.
54 changes: 0 additions & 54 deletions .github/renovate.json5

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/audit.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/auto-review.yaml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: Backport

on:
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Changelog Generator

on:
schedule:
- cron: '0 0 * * 1'
- cron: 0 0 * * 1,4
push:
tags:
- '*.*.*'
Expand All @@ -14,36 +14,38 @@ jobs:
timeout-minutes: 30

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name == 'push' && github.ref_type == 'tag'
- name: Create release
run: |
run: |-
if [[ ${{ github.ref_name }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
gh release create ${{ github.ref_name }} --generate-notes || true
fi
if: github.event_name == 'push' && github.ref_type == 'tag'
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}

- name: Get Date
id: get-date
run: |
echo "date=$(/bin/date -u "+%Y%m%d%H%M%S")" >> $GITHUB_OUTPUT
run: echo "date=$(/bin/date -u "+%Y%m%d%H%M%S")" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: .cache
key: automation-${{ steps.get-date.outputs.date }}
restore-keys: |
restore-keys: |+
automation-
- run: docker pull aeonphp/automation
- name: Generate changelog
run: >
run: >-
docker run --env=AEON_AUTOMATION_GH_TOKEN --rm --volume=$(pwd)/.cache:/cache aeonphp/automation
changelog:generate:all
${{ github.repository }}
--github-release-update
--cache-path=/cache
--skip-from=dependabot-preview[bot]
--skip-from=dependabot[bot]
--skip-from=renovate[bot]
-v
env:
AEON_AUTOMATION_GH_TOKEN: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/clean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
pull_request:
types:
- closed

jobs:
clean:
runs-on: ubuntu-22.04
Expand All @@ -23,5 +24,5 @@ jobs:
- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- run: python3 -m pip install --user --requirement=ci/requirements.txt

- name: Clean docker hub tags
- name: Clean Docker hub tags
run: c2cciutils-clean
25 changes: 25 additions & 0 deletions .github/workflows/dependency-auto-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Auto reviews updates

on:
pull_request:
types:
- opened
- reopened

jobs:
auto-merge:
name: Auto reviews updates
runs-on: ubuntu-22.04
timeout-minutes: 5

steps:
- uses: actions/github-script@v6
with:
script: |-
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
event: 'APPROVE',
})
if: github.event.pull_request.user.login == 'renovate[bot]'
57 changes: 0 additions & 57 deletions .github/workflows/rebuild.yaml

This file was deleted.

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

version:
branch_to_version_re:
Expand Down

0 comments on commit a30175c

Please sign in to comment.