Files
BedrockFetch/.github/workflows/find.yaml
Matheus Sampaio Queiroga 63d40ad965
All checks were successful
Find / findVersion (push) Successful in 14s
Set git config
2023-12-14 12:38:17 +00:00

46 lines
997 B
YAML

name: Find
on:
workflow_dispatch:
schedule:
- cron: "0 */6 * * *"
push:
branches:
- main
jobs:
findVersion:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout code
with:
persist-credentials: true
ref: main
fetch-depth: 2
submodules: true
- run: |
git config --global user.email "fetch@sirherobrine23.org"
git config --global user.name "Bedrock Fetch"
- name: Setup Node JS
uses: actions/setup-node@v3.5.1
with:
node-version: 20.x
- name: Install Node Packages
run: npm install --no-save
- name: Find
timeout-minutes: 2
run: npm run start
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload to artifacts
uses: actions/upload-artifact@v3
with:
name: Versions
path: ./versions
- run: git push || echo "Done"