Update tracked files #117400
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 tracked files | |
on: | |
schedule: | |
- cron: '*/15 * * * *' | |
jobs: | |
update-deps: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.PAT }} | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
- name: Update tracked files | |
id: vars | |
env: | |
HYPIXEL_API_KEY: ${{ secrets.HYPIXEL_API_KEY }} | |
run: | | |
npm install | |
npm start | |
echo "COMMIT_MESSAGE"="$(git status --porcelain | wc -l) files | $(git status --porcelain|awk '{print "basename " $2}'| sh | sed '{:q;N;s/\n/, /g;t q}')" >> $GITHUB_ENV | |
- name: Commit changes | |
uses: stefanzweifel/[email protected] | |
with: | |
commit_message: ${{ env.COMMIT_MESSAGE }} |