generated from ReRand/Workshop
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (28 loc) · 1015 Bytes
/
logref.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
# this is cool https://stackoverflow.com/questions/74265821/get-modified-files-in-github-actions
name: update logref
on:
push:
branches: [main]
paths:
- Logs/**
- .github/workflows/logs/**
- .github/workflows/logref.yml
jobs:
refresh-logref:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./.github/workflows/logs/scripts
steps:
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Install packages
run: npm i
- name: Make the script files executable
run: chmod u+x logref.js
- name: Config Github
run: |
git config --global user.name ${{ github.actor }}
git config --global user.email ${{ github.event.pusher.email }}
- name: Run the scripts
run: node ./logref.js --username=${{ github.actor }} --useremail=${{ github.event.pusher.email }} --commitmsg=${{ github.event.head_commit.message }}