Skip to content

chore: format libraries #46

chore: format libraries

chore: format libraries #46

name: Format Libraries
on:
push:
branches:
- "main"
workflow_dispatch:
env:
COMMIT_MESSAGE: "chore: format libraries"
jobs:
update-lists:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
id: checkout
uses: actions/checkout@v4
- name: webfactory/ssh-agent
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Format Libraries
id: format-libraries
run: |
bash ./create_library_lists.sh
- name: Commit
id: commit
run: |
echo Git config
git config user.email libraryformatter@asf-noreply.com
git config user.name LibraryFormatter
echo Git status
git status
echo Add files
git add .
echo Commit files
git commit -m "${{ env.COMMIT_MESSAGE }}"
echo Start push
git push