forked from codinasion/codinasion
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.18 KB
/
auto-create-dsa-issue.yml
File metadata and controls
53 lines (45 loc) · 1.18 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Auto Create DSA Issue
on:
workflow_dispatch:
# schedule:
# - cron: "0 0/1 * * *"
jobs:
auto_create_dsa_issue:
# run only if repo is not a fork
if: github.repository == 'codinasion/program'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v2
with:
path: node_modules
key: node-modules-${{ hashFiles('yarn.lock') }}
- name: Yarn
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
yarn
- name: Create Issue
uses: ./action/
with:
AUTO_CREATE_DSA_ISSUE: true
TOKEN: ${{ secrets.PAT }}
- name: Git Pull
run: |
git pull
- name: Commit DSA Data
uses: EndBug/add-and-commit@v9
with:
add: "data/dsa.json"
fetch: true
message: "auto create issue"
- name: Commit README
uses: EndBug/add-and-commit@v9
with:
add: "dsa"
fetch: true
message: "add README.md"