mirror of
https://github.com/inttter/md-badges.git
synced 2026-05-06 18:36:58 +02:00
30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
name: Extract refstyle badges
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- feature/reference-style-table
|
|
jobs:
|
|
extract-refstyle-badges:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v5.0.0
|
|
# # LOCAL: Uncomment the apt-get commands for local GH actions testing via "act"
|
|
# - name: update apt
|
|
# run: apt-get update
|
|
# - name: install gawk and git
|
|
# run: apt-get install -y gawk git
|
|
- name: extract refstyle badges
|
|
run: ${{github.workspace}}/.github/scripts/extract-refstyle-badges/extract-refstyle-badges.sh
|
|
- name: display modified README in GH action logs
|
|
run: cat ${{github.workspace}}/docs/REFERENCE_STYLE.md
|
|
- name: commit changes
|
|
run: |
|
|
# Note: the following account information will not work on GHES
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add ${{github.workspace}}/docs/REFERENCE_STYLE.md
|
|
git commit -m "docs: 📝 update reference-style table"
|
|
git status -s
|
|
git push
|