You've already forked ansible-role-common
ci: Updated cron scheduler
This commit is contained in:
57
.github/workflows/ci.yml
vendored
57
.github/workflows/ci.yml
vendored
@@ -5,7 +5,7 @@ on:
|
|||||||
- "**"
|
- "**"
|
||||||
tags:
|
tags:
|
||||||
- "!**"
|
- "!**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -81,27 +81,34 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.G_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.G_TOKEN }}
|
||||||
GITEA_HOST: ${{ secrets.G_SERVER_URL}}
|
GITEA_HOST: ${{ secrets.G_SERVER_URL}}
|
||||||
- name: ntfy-success-notifications
|
notify:
|
||||||
uses: niniyas/ntfy-action@master
|
runs-on: ubuntu-latest
|
||||||
if: success()
|
needs:
|
||||||
with:
|
- lint
|
||||||
url: '${{ vars.NTFY_URL }}'
|
- molecule
|
||||||
title: Workflow success
|
- release
|
||||||
topic: 'ci-status'
|
steps:
|
||||||
priority: 4
|
- name: ntfy-success-notifications
|
||||||
tags: +1,partying_face,action,successfully,completed
|
uses: niniyas/ntfy-action@master
|
||||||
details: Workflow has been successfully completed!
|
if: success()
|
||||||
icon: 'https://styles.redditmedia.com/t5_32uhe/styles/communityIcon_xnt6chtnr2j21.png'
|
with:
|
||||||
image: true
|
url: '${{ vars.NTFY_URL }}'
|
||||||
|
title: Workflow success - ansible-role-common
|
||||||
- name: ntfy-failed-notifications
|
topic: 'ci-status'
|
||||||
uses: niniyas/ntfy-action@master
|
priority: 4
|
||||||
if: failure()
|
tags: +1,partying_face,action,successfully,completed
|
||||||
with:
|
details: Workflow has been successfully completed!
|
||||||
url: '${{ vars.NTFY_URL }}'
|
icon: 'https://styles.redditmedia.com/t5_32uhe/styles/communityIcon_xnt6chtnr2j21.png'
|
||||||
title: Workflow failed
|
image: true
|
||||||
topic: 'ci-status'
|
|
||||||
priority: 5
|
- name: ntfy-failed-notifications
|
||||||
tags: -1,skull,action,failed
|
uses: niniyas/ntfy-action@master
|
||||||
details: Workflow has failed!
|
if: failure()
|
||||||
actions: 'default'
|
with:
|
||||||
|
url: '${{ vars.NTFY_URL }}'
|
||||||
|
title: Workflow failed - ansible-role-common
|
||||||
|
topic: 'ci-status'
|
||||||
|
priority: 5
|
||||||
|
tags: -1,skull,action,failed
|
||||||
|
details: Workflow has failed!
|
||||||
|
actions: 'default'
|
||||||
|
|||||||
12
.github/workflows/cron.yml
vendored
12
.github/workflows/cron.yml
vendored
@@ -30,27 +30,31 @@ jobs:
|
|||||||
PY_COLORS: '1'
|
PY_COLORS: '1'
|
||||||
ANSIBLE_FORCE_COLOR: '1'
|
ANSIBLE_FORCE_COLOR: '1'
|
||||||
MOLECULE_DISTRO: ${{ matrix.os }}
|
MOLECULE_DISTRO: ${{ matrix.os }}
|
||||||
|
notify:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: molecule
|
||||||
|
steps:
|
||||||
- name: ntfy-success-notifications
|
- name: ntfy-success-notifications
|
||||||
uses: niniyas/ntfy-action@master
|
uses: niniyas/ntfy-action@master
|
||||||
if: success()
|
if: success()
|
||||||
with:
|
with:
|
||||||
url: '${{ vars.NTFY_URL }}'
|
url: '${{ vars.NTFY_URL }}'
|
||||||
title: Workflow success
|
title: Workflow success - ansible-role-common
|
||||||
topic: 'ci-status'
|
topic: 'ci-status'
|
||||||
priority: 4
|
priority: 4
|
||||||
tags: +1,partying_face,action,successfully,completed
|
tags: +1,partying_face,action,successfully,completed
|
||||||
details: Workflow has been successfully completed!
|
details: Workflow has been successfully completed!
|
||||||
icon: 'https://styles.redditmedia.com/t5_32uhe/styles/communityIcon_xnt6chtnr2j21.png'
|
icon: 'https://styles.redditmedia.com/t5_32uhe/styles/communityIcon_xnt6chtnr2j21.png'
|
||||||
image: true
|
image: true
|
||||||
|
|
||||||
- name: ntfy-failed-notifications
|
- name: ntfy-failed-notifications
|
||||||
uses: niniyas/ntfy-action@master
|
uses: niniyas/ntfy-action@master
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
url: '${{ vars.NTFY_URL }}'
|
url: '${{ vars.NTFY_URL }}'
|
||||||
title: Workflow failed
|
title: Workflow failed - ansible-role-common
|
||||||
topic: 'ci-status'
|
topic: 'ci-status'
|
||||||
priority: 5
|
priority: 5
|
||||||
tags: -1,skull,action,failed
|
tags: -1,skull,action,failed
|
||||||
details: Workflow has failed!
|
details: Workflow has failed!
|
||||||
actions: 'default'
|
actions: 'default'
|
||||||
|
|||||||
Reference in New Issue
Block a user