-
Notifications
You must be signed in to change notification settings - Fork 358
33 lines (31 loc) · 1000 Bytes
/
expire-hacktoberfest.yml
File metadata and controls
33 lines (31 loc) · 1000 Bytes
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
name: Mark Hacktoberfest as expired
on:
schedule:
- cron: '0 0 2 11 *' # Every November 2
jobs:
execute:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2.1.6
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Read .nvmrc
run: echo "##[set-output name=nvmrc;]$(cat .nvmrc)"
id: nvm
- name: Setup Node
uses: actions/setup-node@v2.4.0
with:
node-version: ${{ steps.nvm.outputs.nvmrc }}
- name: Run expire script
run: ./scripts/expire-hacktoberfest.js
- name: Commit & push
run: |
git config --local user.name "Github Actions Bot"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add data.json
git commit -m "Mark hacktoberfest opportunities as expired"
git push -u origin master