Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/sync-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
steps:
- name: Git clone the repository
uses: actions/checkout@v5
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 24.x
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 24.x
cache: "npm"
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
Expand All @@ -56,12 +56,12 @@ jobs:
- name: Copy tgz build file to s3
run: |
aws s3 cp ./packages/${{ inputs.package_name }}/${{ inputs.package_name }}-${{ steps.package-version.outputs.current-version }}.tgz \
s3://${{ secrets.S3_BUCKET_NAME }}/
s3://${{ secrets.S3_BUCKET_NAME }}/${{ inputs.package_name }}.tgz
- name: commit to Gitfarm
run: |
aws lambda invoke \
--function-name ${{ secrets.SYNC_LAMBDA_ARN }} \
--payload '{"gitFarmRepo":"${{ secrets.GITFARM_LAN_SDK_REPO }}","gitFarmBranch":"${{ secrets.GITFARM_LAN_SDK_BRANCH }}","gitFarmFilepath":"${{ inputs.package_name }}-${{ steps.package-version.outputs.current-version }}.tgz","s3Bucket":"${{ secrets.S3_BUCKET_NAME }}","s3FilePath":"${{ inputs.package_name }}-${{ steps.package-version.outputs.current-version }}.tgz", "gitHubRepo": "aws-durable-execution-sdk-js", "gitHubCommit":"${{ github.sha }}"}' \
--payload '{"gitFarmRepo":"${{ secrets.GITFARM_LAN_SDK_REPO }}","gitFarmBranch":"${{ secrets.GITFARM_LAN_SDK_BRANCH }}","gitFarmFilepath":"${{ inputs.package_name }}.tgz","s3Bucket":"${{ secrets.S3_BUCKET_NAME }}","s3FilePath":"${{ inputs.package_name }}.tgz", "gitHubRepo": "aws-durable-execution-sdk-js", "gitHubCommit":"${{ github.sha }}"}' \
--cli-binary-format raw-in-base64-out \
output.txt
- name: Check for specific text in a file
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:

jobs:
sync-aws-durable-execution-sdk-js:
uses: aws/aws-durable-execution-sdk-js/.github/workflows/sync-package.yml@main
uses: ./.github/workflows/sync-package.yml
with:
package_name: aws-durable-execution-sdk-js
secrets:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Sync Testing
name: Sync Testing SDK

on:
push:
Expand All @@ -16,7 +16,7 @@ permissions:

jobs:
sync-aws-durable-execution-sdk-js-testing:
uses: aws/aws-durable-execution-sdk-js/.github/workflows/sync-package.yml@main
uses: ./.github/workflows/sync-package.yml
with:
package_name: aws-durable-execution-sdk-js-testing
secrets:
Expand Down
Loading