Compare commits
2 commits
8c2f401f2e
...
4ad35364c7
Author | SHA1 | Date | |
---|---|---|---|
4ad35364c7 | |||
7c4491ac6c |
2 changed files with 43 additions and 0 deletions
20
.github/workflows/clean_repository.yml
vendored
Normal file
20
.github/workflows/clean_repository.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
name: Delete old workflow runs
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '45 11 * * 0'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
del_runs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: write
|
||||||
|
contents: read
|
||||||
|
steps:
|
||||||
|
- name: Delete workflow runs
|
||||||
|
uses: Mattraks/delete-workflow-runs@v2
|
||||||
|
with:
|
||||||
|
token: ${{ github.token }}
|
||||||
|
repository: ${{ github.repository }}
|
||||||
|
retain_days: 30
|
||||||
|
keep_minimum_runs: 7
|
23
.github/workflows/release_stable.yml
vendored
23
.github/workflows/release_stable.yml
vendored
|
@ -55,6 +55,29 @@ jobs:
|
||||||
SUMMARY=$'Image ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ steps.dotclear.outputs.version }} found.'
|
SUMMARY=$'Image ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ steps.dotclear.outputs.version }} found.'
|
||||||
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
|
do_release:
|
||||||
|
needs: check_image
|
||||||
|
if: ((needs.check_image.outputs.exists == 'false') || (github.event.inputs.rebuild == 'true'))
|
||||||
|
name: Create repository tag and release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
name: Docker Dotclear ${{ needs.check_image.outputs.version }}
|
||||||
|
commit: master
|
||||||
|
tag: ${{ needs.check_image.outputs.version }}
|
||||||
|
body: Source for docker image of Dotclear ${{ needs.check_image.outputs.version }} stable
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
|
||||||
|
- name: summary
|
||||||
|
run: |
|
||||||
|
SUMMARY=$'Docker Dotclear ${{ steps.dotclear.outputs.version }} release created.'
|
||||||
|
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
do_image:
|
do_image:
|
||||||
needs: check_image
|
needs: check_image
|
||||||
if: ((needs.check_image.outputs.exists == 'false') || (github.event.inputs.rebuild == 'true'))
|
if: ((needs.check_image.outputs.exists == 'false') || (github.event.inputs.rebuild == 'true'))
|
||||||
|
|
Loading…
Reference in a new issue