Skip to content

chcdc/xkcd-profile

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xkcd webcomics

📚 Update your README.md profile with a xkcd webcomics.

SETUP

  • A README.md file.
  • Add a <!-- xkcd --> tag in your README.md file, with three blank lines below it. The webcomic will be placed here.

Instructions

To use this release, add a xkcd.yml workflow file to the .github/workflows folder in your repository with the following code:

name: xkcd-webcomics

on:
  schedule:
    - cron: '1 1 * * *'
  workflow_dispatch:

jobs:
  xkcd:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: xkcd-to-markdown
        uses: chcdc/xkcd-profile@v1
#        with:
#         README_PATH: ./README.md # Optional. Defaults is ./README.md.
      - name: commit changes
        continue-on-error: true
        run: |
          git config --local user.email "[email protected]"
          git config --local user.name "GitHub Action"
          git add -A
          git commit -m "Updated xkcd commic daily" -a
      - name: push changes
        continue-on-error: true
        uses: ad-m/[email protected]
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}\
          branch: main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages