Skip to content

Commit

Permalink
Merge pull request #608 from camptocamp/c2cciutils-upgrade-8.0-gdal3.6
Browse files Browse the repository at this point in the history
CI updates
  • Loading branch information
sbrunner authored Oct 11, 2023
2 parents 1e3bde0 + 3bea93b commit a835dbf
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 349 deletions.
44 changes: 0 additions & 44 deletions .github/renovate.json5

This file was deleted.

68 changes: 30 additions & 38 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Changelog Generator

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

jobs:
changelog:
Expand All @@ -14,46 +14,38 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v3

- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- run: python3 -m pip install --user --requirement=ci/requirements.txt
- 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 "::set-output name=date::$(/bin/date -u "+%Y%m%d%H%M%S")"
run: echo "date=$(/bin/date -u "+%Y%m%d%H%M%S")" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: |
.github/changelog-generator-cache
key: changelog-${{ steps.get-date.outputs.date }}
restore-keys: |
changelog-
path: .cache
key: automation-${{ steps.get-date.outputs.date }}
restore-keys: |+
automation-
- name: Get config
id: config
run: echo ::set-output name=config::$(python -c 'print(__import__("json").dumps(__import__("yaml").load(open(".github/changelog-config.yaml"))))')
- run: docker pull aeonphp/automation
- name: Generate changelog
id: changelog
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}
configureSections: ${{ steps.config.outputs.config }}
cacheFile: .github/changelog-generator-cache
unreleased: false

- run: c2cciutils-checks --fix --check=prettier
- id: status
run: echo ::set-output name=status::$(git status --short)
- run: |
git add CHANGELOG.md
git config --global user.email "[email protected]"
git config --global user.name "CI"
git commit -m "Update the changelog"
git checkout -b changelog-update
git push origin changelog-update -f
gh pr create --base=master --fill --label=chore || true
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:
GITHUB_TOKEN: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}
if: steps.status.outputs.status != ''
AEON_AUTOMATION_GH_TOKEN: ${{ secrets.GOPASS_CI_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/clean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ jobs:
sudo apt update
sudo apt install --yes python3-wheel
- run: sudo python3 -m pip install --requirement=ci/requirements.txt
- name: Clean docker hub tags
- name: Clean Docker hub tags
run: c2cciutils-clean
57 changes: 0 additions & 57 deletions .github/workflows/rebuild.yaml

This file was deleted.

Loading

0 comments on commit a835dbf

Please sign in to comment.