diff --git a/.github/workflows/scrna-galaxyhelp-matrix.yml b/.github/workflows/scrna-galaxyhelp-matrix.yml new file mode 100644 index 00000000000000..c90d160bdf3515 --- /dev/null +++ b/.github/workflows/scrna-galaxyhelp-matrix.yml @@ -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 }}