This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
Modify Toolpacks & Baseutils metadata #24
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: Modify Toolpacks & Baseutils metadata | |
on: | |
schedule: | |
- cron: '0 0 * * MON,THU' # Runs bi-weekly | |
workflow_dispatch: # Allows manual triggering | |
jobs: | |
update-modified-metadata: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5.0.2 | |
- name: Build the modMetadata command | |
run: | | |
cd misc/cmd/modMetadata | |
if find . -maxdepth 1 -type f -name "*.json" | grep -q "."; then rm *.json; fi | |
go build | |
- name: Fetch and modify the Metadata | |
run: | | |
cd misc/cmd/modMetadata | |
./modMetadata | |
rm ./modMetadata | |
- name: Commit and push the updated metadata files | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add ./misc/cmd/modMetadata | |
git commit -m "[WEEKLY] Update Metadata files" | |
git push |