Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add table of modules for a libraries-bom version to README #6083

Merged
merged 10 commits into from
Jul 21, 2023
34 changes: 34 additions & 0 deletions .github/workflows/update-readme-table.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Update README with libraries-bom table
# Run this workflow upon published release

on:
release:
types:
- published
workflow_dispatch:

jobs:
update-readme:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Update table of artifacts
run: |
echo "Updating README.md with table of artifacts associated with the latest libraries-bom..."
python libraries-bom-table-generation/updateREADMETable.py

- name: Commit and push changes
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "Update README with release table"
git push