Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 0d2b294

Browse files
authored
Merge pull request #2819 from philips-labs/develop
chore: sync develop to main
2 parents 935445a + abc53ca commit 0d2b294

12 files changed

+33
-3577
lines changed

Diff for: .github/dependabot.yml

-5
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,3 @@ updates:
2626
directory: "/modules/runners/lambdas/runners"
2727
schedule:
2828
interval: "weekly"
29-
30-
- package-ecosystem: "npm"
31-
directory: "/.release"
32-
schedule:
33-
interval: "weekly"

Diff for: .github/workflows/lambda-runner-binaries-syncer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Lambda Syncer
22
on:
33
push:
44
branches:
5-
- develop
5+
- main
66
pull_request:
77
paths:
88
- .github/workflows/lambda-runner-binaries-syncer.yml

Diff for: .github/workflows/lambda-runners.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Lambda Runners
22
on:
33
push:
44
branches:
5-
- develop
5+
- main
66
pull_request:
77
paths:
88
- .github/workflows/lambda-runners.yml

Diff for: .github/workflows/lambda-webhook.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Lambda Webhook
22
on:
33
push:
44
branches:
5-
- develop
5+
- main
66
pull_request:
77
paths:
88
- .github/workflows/lambda-webhook.yml

Diff for: .github/workflows/packer-build.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,18 @@ on:
33
push:
44
branches:
55
- main
6-
- develop
76
pull_request:
87
paths:
98
- "images/**"
109
- ".github/workflows/packer-build.yml"
1110
- "module/runners/templates/**"
1211

13-
env:
12+
env:
1413
AWS_REGION: eu-west-1
1514

1615
jobs:
1716
verify_packer:
18-
name: Verify packer
17+
name: Verify packer
1918
runs-on: ubuntu-latest
2019
container:
2120
image: hashicorp/packer:1.7.8
@@ -28,12 +27,12 @@ jobs:
2827
steps:
2928
- name: "Checkout"
3029
uses: actions/checkout@v3
31-
30+
3231
- name: packer init
3332
run: packer init .
3433

3534
- name: check packer formatting
36-
run: packer fmt -recursive -check=true .
35+
run: packer fmt -recursive -check=true .
3736

3837
- name: packer validate
3938
run: packer validate .

Diff for: .github/workflows/release.yml

+16-23
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
- refactor/release
7+
- v1
88

99
jobs:
1010
prepare:
@@ -41,32 +41,30 @@ jobs:
4141
needs:
4242
prepare
4343
outputs:
44-
upload_url: ${{ steps.release.outputs.upload_url }}
4544
releases_created: ${{ steps.release.outputs.releases_created }}
46-
permissions:
47-
contents: write
48-
issues: write
49-
pull-requests: write
50-
actions: write
45+
tag_name: ${{ steps.release.outputs.tag_name }}
5146
steps:
5247
- name: Get installation token
53-
uses: npalm/action-[email protected].0
48+
uses: philips-software/app-token-action@v1.1.2
5449
id: token
5550
with:
56-
appId: ${{ secrets.FOREST_RELEASER_APP_ID }}
57-
appPrivateKeyBase64: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }}
58-
appInstallationType: repo
59-
appInstallationValue: ${{ github.repository }}
51+
app_id: ${{ secrets.FOREST_RELEASER_APP_ID }}
52+
app_base64_private_key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }}
53+
auth_type: installation
54+
55+
56+
- name: Extract branch name
57+
id: branch
58+
shell: bash
59+
run: echo "name=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
6060

61-
# bootstrap-sha and release-as needs to be removed after first release
6261
- name: Release
6362
id: release
6463
uses: google-github-actions/release-please-action@5c07f8be172b1f6e90f9c35baf8184461b91b85f # ratchet:google-github-actions/release-please-action@v3
6564
with:
66-
default-branch: main
65+
default-branch: ${{ steps.branch.outputs.name }}
6766
release-type: terraform-module
6867
token: ${{ steps.token.outputs.token }}
69-
last-release-sha: b404332ff8b401a5a8958317a69b9f849b794a16
7068

7169
assets:
7270
name: upload assets
@@ -81,18 +79,13 @@ jobs:
8179
actions: read
8280

8381
steps:
82+
- uses: actions/checkout@v3
8483
- uses: actions/download-artifact@v3
8584
with:
8685
name: ${{ matrix.asset }}
87-
path: artifacts
8886

8987
- name: Upload Release Asset
90-
id: upload-release-asset
91-
uses: actions/upload-release-asset@v1
9288
env:
9389
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94-
with:
95-
upload_url: ${{ needs.release.outputs.upload_url }}
96-
asset_path: artifacts/${{ matrix.asset }}.zip
97-
asset_name: ${{ matrix.asset }}.zip
98-
asset_content_type: application/zip
90+
run:
91+
gh release upload ${{ needs.release.outputs.tag_name }} ${{ matrix.asset }}.zip

Diff for: .github/workflows/terraform.yml

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
branches:
55
- main
6-
- develop
76
pull_request:
87
paths-ignore:
98
- "modules/*/lambdas/**"

Diff for: .release/package.json

-18
This file was deleted.

0 commit comments

Comments
 (0)