Merge pull request #26 from opencost/atm/restructure-testharness #2
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 Manifest | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update-manifest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: ./ | |
- name: update current plugin list | |
run: | | |
plugins=$(ls pkg/plugins | tr -s ' ' | sort) | |
echo "got plugins: $plugins" | |
echo ' | |
# this manifest contains the name of every currently implemented plugin. it can be pulled via https://github.com/opencost/opencost-plugins/raw/main/manifest to get an up to date list of current plugins. | |
' > manifest | |
echo "$plugins" >> manifest | |
echo "manifest updated" | |
echo "manifest contents:" | |
cat manifest | |
- uses: EndBug/add-and-commit@v9 | |
name: commit updated manifest file | |
with: | |
add: 'manifest' | |
commit: --signoff | |
message: 'update manifest' | |
author_name: 'opencost-plugin-bot' | |