Merge pull request #143 from GMkonan/patch-1

workflow_dispatch and how to run it instantly
This commit is contained in:
Anmol Pratap Singh
2020-12-16 21:30:00 +05:30
committed by GitHub

View File

@@ -86,7 +86,7 @@ on:
schedule: schedule:
# Runs at 12am IST # Runs at 12am IST
- cron: '30 18 * * *' - cron: '30 18 * * *'
workflow_dispatch:
jobs: jobs:
update-readme: update-readme:
name: Update Readme with Metrics name: Update Readme with Metrics
@@ -97,6 +97,8 @@ jobs:
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }} WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }}
``` ```
- Now you can commit and wait for run automatically, but you can also trigger to run it to see the result now. Just go to the `Actions` in your repo and select your `Profile Readme Development Stats` workflow and click in `Run workflow`. Now wait for a minute or two and you will see your changes.
## Extras ## Extras
1. If you want to add the other info to your stats, you can add multiple `FLAGS` in your workflow file by default all flags are enabled 1. If you want to add the other info to your stats, you can add multiple `FLAGS` in your workflow file by default all flags are enabled