flattenthecurve / guide

https://www.flattenthecurve.com
Creative Commons Attribution 4.0 International
38 stars 33 forks source link

Resource import - Pull request automatic creation (fix workflow) #278

Closed rousik closed 4 years ago

rousik commented 4 years ago

Fix workflow issues.

  1. Turns out that peter-evans/create-pull-request depends on actions/checkout@v2
  2. Rename action to reflect its purpose
  3. Fix typo in the PR
  4. Allow triggering this workflow via webhooks. This could be done by running:
curl https://api.github.com/repos/flattenthecurve/guide/dispatches \
  -H "Authorization: token $GITHUB_TOKEN" \
  -H "Accept: application/vnd.github.everest-preview+json" \
  --data '{"event_type": "import_resources"}'
rousik commented 4 years ago

I have verified that this workflow works on my own repo fork. We may consider notifying slack channel resources when PRs from this action are created.

github-actions[bot] commented 4 years ago

Deploy preview for website ready!

Built with commit ac678baf4effa98e25759f1ef7f71a4f290a712a

https://guide-preview-kmeeo6qhh.now.sh

rousik commented 4 years ago

@nditada or @matiasgarciaisaia can you approve please?