-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (36 loc) · 1.06 KB
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 }}'