Update duration in codelab.md #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Codelab Export | |
on: | |
push: | |
paths: | |
- 'codelab.md' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Important: This is needed to push back to the repo | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
- name: Install claat | |
run: go install github.com/googlecodelabs/tools/claat@latest | |
- name: Export codelab | |
run: | | |
claat export codelab.md | |
- name: Push back | |
run: | | |
git config user.name codelab-bot | |
git config user.email nischalon10@gmail.com | |
mv "codelab-4-codelab-markdown" "docs" | |
git add . | |
git commit -m "Adding Codelab" | |
git push https://nischalon10:${{secrets.GH_PAT}}@github.com/nischalon10/codelabtesting | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} |