Skip to content

Commit

Permalink
Merge pull request #3075 from mapfish/c2cciutils-upgrade-3.30
Browse files Browse the repository at this point in the history
CI updates
  • Loading branch information
sbrunner authored Oct 11, 2023
2 parents 1d82adf + c1dabc1 commit d460916
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 344 deletions.
111 changes: 0 additions & 111 deletions .github/renovate.json5

This file was deleted.

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

This file was deleted.

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

This file was deleted.

21 changes: 15 additions & 6 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,20 +14,30 @@ jobs:
timeout-minutes: 30

steps:
- uses: actions/checkout@v4
if: github.event_name == 'push' && github.ref_type == 'tag'
- name: Create release
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: ${{ 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 }}
Expand All @@ -36,7 +46,6 @@ jobs:
--skip-from=dependabot-preview[bot]
--skip-from=dependabot[bot]
--skip-from=renovate[bot]
--tag-skip=3.23.0
-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 @@ -22,5 +23,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]'
2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
run: c2cciutils-pull-request-checks
env:
GITHUB_EVENT: ${{ toJson(github) }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}
Loading

0 comments on commit d460916

Please sign in to comment.