-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added pipelines to manage changes in Mailgun
- Loading branch information
1 parent
107b480
commit e157e40
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
name: Update Mailgun | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
working-directory: ./update | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.16.1' | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: Apply changes | ||
run: node update.js iojs.org | ||
working-directory: ${{ env.working-directory }} | ||
env: | ||
MAILGUN_API_KEY: ${{ secrets.MAILGUN_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
name: Source Code Health | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
working-directory: ./update | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.16.1' | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: Check changes | ||
run: node update.js iojs.org --dry-run | ||
working-directory: ${{ env.working-directory }} | ||
env: | ||
MAILGUN_API_KEY: ${{ secrets.MAILGUN_API_KEY }} |