Update channels.txt #141
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: Make | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: pip cache | |
uses: actions/cache@v4 | |
id: pip-cache | |
with: | |
path: ~/.cache/pip | |
key: pip-cache-${{ hashFiles('requirements.txt') }} | |
restore-keys: pip-cache- | |
- name: npm cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
./node_modules | |
~/.npm | |
key: npm-cache-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm-cache- | |
- name: Install Dependencies | |
run: | | |
pip install -r requirements.txt | |
npm install | |
- name: Make | |
run: python ./scripts/main.py | |
- name: Lint | |
run: npx aglint filter.txt | |
- name: Git | |
run: | | |
if [ -n "$(git status --porcelain)" ]; then | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git add -A | |
git commit -m "Make" | |
git push | |
fi |