Skip to content

Commit

Permalink
Merge pull request #9262 from camptocamp/c2cciutils-upgrade-2.8
Browse files Browse the repository at this point in the history
CI updates
  • Loading branch information
sbrunner authored Nov 30, 2023
2 parents df2033d + 2d7cf82 commit 4961fb4
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Changelog Generator

on:
schedule:
- cron: 0 0 * * 1,4
push:
tags:
- '*.*.*'

jobs:
changelog:
name: Changelog Generator
runs-on: ubuntu-22.04
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
- uses: actions/cache@v3
with:
path: .cache
key: automation-${{ steps.get-date.outputs.date }}
restore-keys: |+
automation-
- run: docker pull aeonphp/automation
- name: Generate changelog
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 }}
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]'
1 change: 1 addition & 0 deletions .github/workflows/pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,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

0 comments on commit 4961fb4

Please sign in to comment.