mirror of
https://github.com/pezkuwichain/pezkuwi-fellows.git
synced 2026-07-15 14:05:40 +00:00
bcca93886c
Changed the time to run **every day at 12:00** (UTC) Updated the version to 0.0.8 which fixes the bug with the referenda url comment being wrongly formatted
27 lines
840 B
YAML
27 lines
840 B
YAML
name: RFC Cron
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 12 * * *'
|
|
|
|
jobs:
|
|
rfc_notification:
|
|
runs-on: ubuntu-latest
|
|
name: Notify on referendas
|
|
steps:
|
|
- name: Get last run
|
|
run: |
|
|
last=$(gh run list -w "$WORKFLOW" --json startedAt,status -q 'map(select(.status == "completed"))[0].startedAt')
|
|
echo "last=$last" >> "$GITHUB_OUTPUT"
|
|
id: date
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
WORKFLOW: ${{ github.workflow }}
|
|
GH_REPO: "${{ github.repository_owner }}/${{ github.event.repository.name }}"
|
|
- uses: paritytech/rfc-action@v0.0.8
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
PROVIDER_URL: "wss://polkadot-collectives-rpc.polkadot.io"
|
|
START_DATE: ${{ steps.date.outputs.last }}
|