Skip to content

Commit c817fd7

Browse files
committed
ci: remove version when syncing file
1 parent c4af3ff commit c817fd7

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.github/workflows/sync-package.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,17 @@ 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
4141
with:
4242
role-to-assume: "${{ secrets.ACTIONS_SYNC_ROLE_NAME }}"
4343
role-session-name: samplerolesession
4444
aws-region: ${{ env.AWS_REGION }}
45-
- name: get-npm-version
46-
id: package-version
47-
uses: martinbeentjes/npm-get-version-action@v1.3.1
48-
with:
49-
path: packages/${{ inputs.package_name }}
5045
- run: npm ci
5146
- run: npm run build
5247
- name: Navigate to package and pack
@@ -55,13 +50,13 @@ jobs:
5550
# Upload a file to AWS s3
5651
- name: Copy tgz build file to s3
5752
run: |
58-
aws s3 cp ./packages/${{ inputs.package_name }}/${{ inputs.package_name }}-${{ steps.package-version.outputs.current-version }}.tgz \
53+
aws s3 cp ./packages/${{ inputs.package_name }}/${{ inputs.package_name }}.tgz \
5954
s3://${{ secrets.S3_BUCKET_NAME }}/
6055
- name: commit to Gitfarm
6156
run: |
6257
aws lambda invoke \
6358
--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 }}"}' \
59+
--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 }}"}' \
6560
--cli-binary-format raw-in-base64-out \
6661
output.txt
6762
- 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)