diff --git a/.github/workflows/sync-package.yml b/.github/workflows/sync-package.yml index 720028e0..21d28dba 100644 --- a/.github/workflows/sync-package.yml +++ b/.github/workflows/sync-package.yml @@ -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 @@ -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 diff --git a/.github/workflows/sync-sdk.yml b/.github/workflows/sync-sdk.yml index bb83e961..68f4d128 100644 --- a/.github/workflows/sync-sdk.yml +++ b/.github/workflows/sync-sdk.yml @@ -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: diff --git a/.github/workflows/sync-testing.yml b/.github/workflows/sync-testing-sdk.yml similarity index 88% rename from .github/workflows/sync-testing.yml rename to .github/workflows/sync-testing-sdk.yml index 01fa1aad..84b29e5d 100644 --- a/.github/workflows/sync-testing.yml +++ b/.github/workflows/sync-testing-sdk.yml @@ -1,4 +1,4 @@ -name: Sync Testing +name: Sync Testing SDK on: push: @@ -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: