forked from forabi/prisma-rpi-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1.17 KB
/
update-prisma-version.yml
File metadata and controls
34 lines (33 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Update prisma version
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
check:
name: Check for Prisma CLI update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
- name: Install Dependencies
run: yarn
- name: Check for Prisma CLI update
id: check_update
run: node check-for-version.js
- name: Update version
if: ${{ steps.check_update.outputs.new_prisma_version }}
run: |
echo '${{ steps.check_update.outputs.new_prisma_version }}' > version
git config --global user.name 'Muhammad Fawwaz Orabi'
git config --global user.email 'mfawwaz93@gmail.com'
git commit -am "chore: auto update prisma version for ${{ steps.check_update.outputs.new_prisma_version }}"
git push
- name: Trigger build
if: ${{ steps.check_update.outputs.new_prisma_version }}
uses: benc-uk/workflow-dispatch@v1
with:
workflow: build armv7
token: ${{ secrets.GITHUB_TOKEN }}
inputs: '{ "tag": "${{ steps.check_update.outputs.new_prisma_version }}" }'