Skip to content

Commit

Permalink
chore: added pipelines to manage changes in Mailgun
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Jul 11, 2023
1 parent 107b480 commit e157e40
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/cd.yml
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 }}
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
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 }}

0 comments on commit e157e40

Please sign in to comment.