Skip to content

Commit a18dfe8

Browse files
authored
ci: remove version when syncing file (#363)
*Issue #, if available:* *Description of changes:* Currently syncing the SDK is not working since incrementing the package version breaks the sync. We can't sync with the version in the filename, since we would have to parse the version from the filename to be able to untar it. We can just sync without the version in the filename. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent c4af3ff commit a18dfe8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/sync-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
steps:
3232
- name: Git clone the repository
3333
uses: actions/checkout@v5
34-
- name: Use Node.js ${{ matrix.node-version }}
34+
- name: Use Node.js 24.x
3535
uses: actions/setup-node@v4
3636
with:
37-
node-version: ${{ matrix.node-version }}
37+
node-version: 24.x
3838
cache: "npm"
3939
- name: configure aws credentials
4040
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
@@ -56,12 +56,12 @@ jobs:
5656
- name: Copy tgz build file to s3
5757
run: |
5858
aws s3 cp ./packages/${{ inputs.package_name }}/${{ inputs.package_name }}-${{ steps.package-version.outputs.current-version }}.tgz \
59-
s3://${{ secrets.S3_BUCKET_NAME }}/
59+
s3://${{ secrets.S3_BUCKET_NAME }}/${{ inputs.package_name }}.tgz
6060
- name: commit to Gitfarm
6161
run: |
6262
aws lambda invoke \
6363
--function-name ${{ secrets.SYNC_LAMBDA_ARN }} \
64-
--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 }}"}' \
64+
--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 }}"}' \
6565
--cli-binary-format raw-in-base64-out \
6666
output.txt
6767
- name: Check for specific text in a file

.github/workflows/sync-sdk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515

1616
jobs:
1717
sync-aws-durable-execution-sdk-js:
18-
uses: aws/aws-durable-execution-sdk-js/.github/workflows/sync-package.yml@main
18+
uses: ./.github/workflows/sync-package.yml
1919
with:
2020
package_name: aws-durable-execution-sdk-js
2121
secrets:

.github/workflows/sync-testing.yml renamed to .github/workflows/sync-testing-sdk.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Sync Testing
1+
name: Sync Testing SDK
22

33
on:
44
push:
@@ -16,7 +16,7 @@ permissions:
1616

1717
jobs:
1818
sync-aws-durable-execution-sdk-js-testing:
19-
uses: aws/aws-durable-execution-sdk-js/.github/workflows/sync-package.yml@main
19+
uses: ./.github/workflows/sync-package.yml
2020
with:
2121
package_name: aws-durable-execution-sdk-js-testing
2222
secrets:

0 commit comments

Comments
 (0)