Skip to content

Commit e157e40

Browse files
committed
chore: added pipelines to manage changes in Mailgun
1 parent 107b480 commit e157e40

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.github/workflows/cd.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
name: Update Mailgun
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
env:
15+
working-directory: ./update
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: '18.16.1'
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
working-directory: ${{ env.working-directory }}
26+
27+
- name: Apply changes
28+
run: node update.js iojs.org
29+
working-directory: ${{ env.working-directory }}
30+
env:
31+
MAILGUN_API_KEY: ${{ secrets.MAILGUN_API_KEY }}

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- main
5+
6+
name: Source Code Health
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
env:
15+
working-directory: ./update
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: '18.16.1'
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
working-directory: ${{ env.working-directory }}
26+
27+
- name: Check changes
28+
run: node update.js iojs.org --dry-run
29+
working-directory: ${{ env.working-directory }}
30+
env:
31+
MAILGUN_API_KEY: ${{ secrets.MAILGUN_API_KEY }}

0 commit comments

Comments
 (0)