cleanup workflow

This commit is contained in:
Jean-Christian Denis 2024-12-02 18:54:57 +01:00
parent ef972f891a
commit e460ac20a4
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -2,7 +2,7 @@ name: Build and push stable image
on: on:
schedule: schedule:
- cron: '0 10 * * *' - cron: '15 10 * * *'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
rebuild: rebuild:
@ -35,11 +35,6 @@ jobs:
curl -fsSL -o versions.xml ${{ env.DOTCLEAR_URL }} curl -fsSL -o versions.xml ${{ env.DOTCLEAR_URL }}
echo version=$(cat versions.xml | xq -x "//release[@name='${{ env.DOTCLEAR_CANAL }}']/@version") >> $GITHUB_OUTPUT echo version=$(cat versions.xml | xq -x "//release[@name='${{ env.DOTCLEAR_CANAL }}']/@version") >> $GITHUB_OUTPUT
- name: Check out the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check repository releases - name: Check repository releases
id: repository id: repository
uses: mukunku/tag-exists-action@v1.6.0 uses: mukunku/tag-exists-action@v1.6.0
@ -52,12 +47,11 @@ jobs:
permissions: permissions:
contents: write contents: write
needs: check_release needs: check_release
if: needs.check_release.outputs.exists == 'false' if: (needs.check_release.outputs.exists == 'false')
steps: steps:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create repository release - name: Create repository release
id: create_release id: create_release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
@ -76,7 +70,7 @@ jobs:
attestations: write attestations: write
id-token: write id-token: write
needs: check_release needs: check_release
if: (needs.check_release.outputs.exists == 'false') || (github.event.inputs.rebuild == 'true') if: ((needs.check_release.outputs.exists == 'false') || (github.event.inputs.rebuild == 'true'))
steps: steps:
- name: Check out the repo - name: Check out the repo
uses: actions/checkout@v4 uses: actions/checkout@v4