-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.04 KB
/
new-release-notifications.yml
File metadata and controls
37 lines (36 loc) · 1.04 KB
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
name: New Sequences Notification
on:
schedule:
- cron: '13 * * * *'
workflow_dispatch:
push:
branches:
- main
jobs:
notify:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./new_releases
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up micromamba environment
uses: mamba-org/setup-micromamba@v2
with:
environment-file: new_releases/environment.yml
cache-environment: true
- name: Run notification script
env:
SLACK_WEBHOOK_URL: ${{ secrets.RELEASE_SLACK_WEBHOOK_URL }}
run: python new_releases.py
- name: Commit and push changes
run: |
git config --local user.email "gh-notifications-bot@pathoplexus.org"
git config --local user.name "Pathoplexus Notifications Bot"
git add already_notified/*
if ! git diff-index --quiet HEAD; then
git commit -am "Update already notified releases"
git push
fi