-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #977 from camptocamp/update-example
Update example
- Loading branch information
Showing
6 changed files
with
94 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Changelog Generator | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 1' | ||
push: | ||
tags: | ||
- '*.*.*' | ||
|
||
jobs: | ||
changelog: | ||
name: Changelog Generator | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
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: ${{ 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 }} |
20 changes: 20 additions & 0 deletions
20
example-project/.github/workflows/delete-old-workflows-run.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Delete old workflow runs | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 25 | ||
name: Delete old workflow runs | ||
|
||
steps: | ||
- name: Delete old workflow runs | ||
uses: MajorScruffy/delete-old-workflow-runs@v0.3.0 | ||
with: | ||
repository: ${{ github.repository }} | ||
older-than-seconds: 43200000 # 500 days | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters