Skip to content

Commit

Permalink
added github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mtekman committed Dec 20, 2023
1 parent 637851f commit a6c0a77
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/scrna-galaxyhelp-matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "[Cron] Send Single-cell Galaxy Help Topics to Matrix CoP Room"

on:
schedule:
# * is a special character in YAML so you have to quote this string
# We'll run this every monday at noon
- cron: '0 12 * * 1'
workflow_dispatch:

jobs:
runner-job:
if: github.repository_owner == 'galaxyproject'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

# BEGIN Dependencies
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y coreutils curl libxml2-utils gawk sed grep jq wget
# END Dependencies

- name: Send announcements to single-cell matrix for unanswered posts
run: |
wget https://raw.githubusercontent.com/galaxyproject/training-material/main/bin/galaxy-help-news.sh
MATRIX_ACCESS_TOKEN="${MATRIX_ACCESS_TOKEN}" HTML_TYPE="bullets" MAX_REPLIES="0" WANTED_TAGS="scrna scrna-seq" ROOM_ID='!TJRLNvfcbWbSRoUNpl:matrix.org' bash ./galaxy-help-news.sh
env:
MATRIX_ACCESS_TOKEN: ${{ secrets.matrix_access_token }}

0 comments on commit a6c0a77

Please sign in to comment.