Skip to content

Continue on error :-( #22

Continue on error :-(

Continue on error :-( #22

Workflow file for this run

name: Embed code in README
on:
push:
branches:
- main
jobs:
embed-code:
runs-on: ubuntu-latest
permissions:
contents: write # release changes require contents write
steps:
- uses: actions/checkout@v4
#- name: Markdown Code Embed
# uses: ippie52/[email protected]
# with:
# args: '-b'
- name: Markdown Code Embed
continue-on-error: true
run: |
#!/usr/bin/env bash
set -e
git clone https://github.com/ippie52/markdown_code_embed.git
python markdown_code_embed/mdce.py -b -f README.md
- name: Push the README file with snippet
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
set +e
git add README.md
git commit -m "README.md file augmented with snippet codes"
git push