Skip to content

Commit

Permalink
Run updater bot every month.
Browse files Browse the repository at this point in the history
  • Loading branch information
030 committed Oct 1, 2022
1 parent c370d60 commit 0b3220e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/dip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: DIP
'on':
schedule:
- cron: '0 19 * * 5'
- cron: '30 17 1 * *'
jobs:
dive:
runs-on: ubuntu-latest
Expand All @@ -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
Expand All @@ -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]
Expand Down

0 comments on commit 0b3220e

Please sign in to comment.