feat(anime): Anime media type added #2
Workflow file for this run
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: Update Documentation | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
update_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.22.2' | |
- name: Run go generate | |
run: go generate ./... | |
- name: Execute build_media_map script | |
run: chmod +x ./scripts/build_media_map.sh && ./scripts/build_media_map.sh | |
id: script_output | |
- name: Append output to docs/index.md | |
run: | | |
echo -e "\n# epic Provider\n$(cat docs/index.md)" > docs/index.md | |
echo "${{ steps.script_output.outputs.result }}" >> docs/index.md | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref_name }} | |
- name: Git push docs/index.md with media type and title mapping | |
run: | | |
git config --global user.name "${{ vars.TF_THESUDO_CI_COMMIT_AUTHOR }}" | |
git config --global user.email "${{ vars.TF_THESUDO_CI_COMMIT_EMAIL }}" | |
git add . | |
git commit -a -m "Update docs/index.md" | |
git push "https://${{ vars.TF_THESUDO_CI_COMMIT_AUTHOR }}:${{ secrets.TF_THESUDO_COMMIT_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" |