Skip to content

update

update #1192

Workflow file for this run

name: update
on:
schedule:
- cron: '00 12 * * *'
push: {}
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check for update
run: ./.github/scripts/check_update.sh
shell: bash
- name: Update
if: env.UPDATE_REQUIRED == '1'
run: ./.github/scripts/update.sh
shell: bash
- name: Commit and tag
if: env.UPDATE_REQUIRED == '1'
uses: EndBug/add-and-commit@v9
with:
add: '.'
author_name: github-actions[bot]
author_email: github-actions[bot]@users.noreply.github.com
message: 'Update to Observium CE ${{ env.LATEST_OBSERVIUM_VERSION }}'
push: true
tag: 'v${{ env.LATEST_OBSERVIUM_VERSION }}'
- name: Release
if: env.UPDATE_REQUIRED == '1'
uses: softprops/action-gh-release@v1
with:
tag_name: 'v${{ env.LATEST_OBSERVIUM_VERSION }}'
name: 'Observium CE ${{ env.LATEST_OBSERVIUM_VERSION }}'