-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (31 loc) · 1.09 KB
/
build-lambda.yml
File metadata and controls
36 lines (31 loc) · 1.09 KB
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
name: Build Connectivity Check Lambda
on:
push:
paths:
- 'modules/connectivity_check/lambda/**'
- 'modules/connectivity_check/scripts/build-lambda.sh'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://npm.pkg.github.com'
scope: '@racker'
- name: Build Lambda package
env:
JANUS_GITHUB_PAT: ${{ secrets.JANUS_GITHUB_PAT }}
run: |
chmod +x modules/connectivity_check/scripts/build-lambda.sh
modules/connectivity_check/scripts/build-lambda.sh
- name: Commit lambda.zip if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add modules/connectivity_check/lambda.zip
git diff --staged --quiet || git commit -m "chore(connectivity_check): rebuild lambda.zip [skip ci]"
git push