-
Notifications
You must be signed in to change notification settings - Fork 321
48 lines (44 loc) · 1.42 KB
/
main.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This is a basic workflow to help you get started with Actions. It's copied from the GitHub Graduation Workflow.
name: Talent Land PR challenge
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
pull_request_target:
types:
- opened
- review_requested
- ready_for_review
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: .github/workflows/src
name: Getting grades
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 14
- name: Cache modules
id: cachemodules
uses: actions/cache@v2
with:
path: .github/workflows/src/node_modules
key: ${{ runner.os }}-${{ secrets.CACHE_VERSION }}-${{ hashFiles('.github/workflows/src/package.json') }}
- name: Setup npm
run: npm install -g npm
- name: Install dependencies
if: steps.cachemodules.outputs.cache-hit != 'true'
run: npm install
- name: Get Minute
id: getminute
run: echo "::set-output name=minute::$(date -u '+%M')"
shell: bash # For Windows, Linux and macOS default to bash alrea
- name: run validations
run: node index.js
env:
GH_SECRET: ${{ secrets.GH_SECRET }}