From 0b3220e265ada69d67ac449fcab3f628c91037a9 Mon Sep 17 00:00:00 2001 From: 030 Date: Sat, 1 Oct 2022 16:43:17 +0200 Subject: [PATCH] Run updater bot every month. --- .github/workflows/dip.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dip.yml b/.github/workflows/dip.yml index 732e97c..79fcd49 100644 --- a/.github/workflows/dip.yml +++ b/.github/workflows/dip.yml @@ -2,7 +2,7 @@ name: DIP 'on': schedule: - - cron: '0 19 * * 5' + - cron: '30 17 1 * *' jobs: dive: runs-on: ubuntu-latest @@ -11,6 +11,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: + fetch-depth: 0 token: ${{ secrets.WORKFLOW_TOKEN }} # yamllint disable rule:line-length - name: Download DIP @@ -37,6 +38,18 @@ jobs: YAMLLINT_VERSION=$(./dip image --name=pipelinecomponents/yamllint --regex=0\..*) echo "Check whether the latest yamllint version: '${YAMLLINT_VERSION}' is used..." sed -i "s|\(pipelinecomponents/yamllint:\).*|\1${YAMLLINT_VERSION}|" ./.github/workflows/yamllint.yml + - name: Generate changelog + run: | + tag=$(current_patch=$(git tag | tail -1 | sed -e "s|.*\.\([0-9]\+\)$|\1|"); new_patch=$(($current_patch + 1)); git tag | tail -1 | sed -e "s|\([0-9]\+\)$|${new_patch}|") + echo "New tag: '${tag}'" + curl -L https://github.com/git-chglog/git-chglog/releases/download/v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz -o /tmp/git-chglog_0.15.1_linux_amd64.tar.gz + tar -xvf /tmp/git-chglog_0.15.1_linux_amd64.tar.gz -C /tmp + chmod +x /tmp/git-chglog + /tmp/git-chglog -o docs/CHANGELOG.md --config configs/chglog/config.yml --next-tag ${tag} + echo "Checking README.md..." + sed -i "s|\(yaam:\).*|\1${tag}|" docs/start/DOCKER.md + echo "Checking k8s-openshift deployment..." + sed -i "s|\(yaam:\).*|\1${tag}|" deployments/k8s-openshift/deploy.yml - uses: EndBug/add-and-commit@v9 with: author_name: github-actions[bot]