mirror of
https://github.com/pezkuwichain/pezkuwi-fellows.git
synced 2026-06-20 23:41:01 +00:00
34d26ff1aa
It was improperly set to run every minute after 11. I changed it to run every weekday only once after 12. Also, added status badge for the job in the Readme so we can preview there that the job is running: [](https://github.com/polkadot-fellows/RFCs/actions/workflows/rfc-referenda-notifications.yml)
27 lines
848 B
YAML
27 lines
848 B
YAML
name: RFC Cron
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 12 * * 1,2,3,4,5'
|
|
|
|
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.7
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
PROVIDER_URL: "wss://polkadot-collectives-rpc.polkadot.io"
|
|
START_DATE: ${{ steps.date.outputs.last }}
|