Skip to content

Instantly share code, notes, and snippets.

@matttelliott
Last active January 25, 2022 02:38
Show Gist options
  • Save matttelliott/53baa36bfaef4f41baa134c6023d2629 to your computer and use it in GitHub Desktop.
Save matttelliott/53baa36bfaef4f41baa134c6023d2629 to your computer and use it in GitHub Desktop.
Add Gists to GitHub Profile

Add gists to README.md

name: Latest Gists workflow
on:
  push:
    branches: [master]
  schedule: # Run workflow automatically
    - cron: '0 0 * * *' # Runs every day at midnight
  workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the Github Actions Workflow page directly

jobs:
  update-readme-with-gists:
    name: Update this repo's README.md with latest Gists
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Add Latest Gists to README.md
        uses: gautamkrishnar/blog-post-workflow@master
        with:
          comment_tag_name: 'GIST-LIST'
          commit_message: 'Updated README.md with the latest Gists'
          feed_list: 'https://gist.github.com/matttelliott.atom'
  • add the comment tag to README.md
# Latest Gists

<!-- GIST-LIST:START -->
<!-- GIST-LIST:END -->
  • commit and push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment