Skip to content

Commit f7c162c

Browse files
committed
#RI-6315 - release workflow doesn't run
1 parent f2a8333 commit f7c162c

File tree

5 files changed

+44
-65
lines changed

5 files changed

+44
-65
lines changed

.github/workflows/aws-upload-dev.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ jobs:
4646
run: |
4747
echo "SUB_PATH=dev-builds/${{ steps.date.outputs.date }}/${{ github.run_id }}" >> $GITHUB_ENV
4848
49-
- name: Set sub path for pre-release builds
49+
- name: Set sub path for pre-release builds and copy to upgrades folder
5050
if: inputs.pre-release
5151
run: |
5252
APP_VERSION=$(jq -r '.version' redisinsight/package.json)
5353
echo "SUB_PATH=pre-release/${APP_VERSION}" >> $GITHUB_ENV
5454
55+
aws s3 cp release/ s3://${AWS_BUCKET_NAME_TEST}/public/upgrades --recursive
56+
5557
- name: Upload builds to s3 bucket
5658
run: |
5759
aws s3 cp release/ s3://${AWS_BUCKET_NAME_TEST}/public/${SUB_PATH} --recursive
@@ -63,5 +65,24 @@ jobs:
6365
# Remove artifacts from github actions
6466
remove-artifacts:
6567
name: Remove artifacts
66-
uses: ./.github/workflows/remove-artifacts.yml
6768
needs: 's3'
69+
runs-on: ubuntu-latest
70+
71+
steps:
72+
- name: Merge artifacts by pattern
73+
id: merge-artifacts
74+
uses: actions/upload-artifact/merge@v4
75+
with:
76+
name: remove-artifacts
77+
pattern: '*'
78+
delete-merged: true
79+
80+
- name: Delete merged artifact
81+
uses: actions/github-script@v7
82+
with:
83+
script: |
84+
github.rest.actions.deleteArtifact({
85+
owner: context.repo.owner,
86+
repo: context.repo.repo,
87+
artifact_id: ${{ steps.merge-artifacts.outputs.artifact-id }}
88+
});

.github/workflows/aws-upload-prod.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,27 @@ jobs:
4444
# Remove artifacts from github actions
4545
remove-artifacts:
4646
name: Remove artifacts
47-
uses: ./.github/workflows/remove-artifacts.yml
4847
needs: 'release-private'
48+
runs-on: ubuntu-latest
49+
50+
steps:
51+
- name: Merge artifacts by pattern
52+
id: merge-artifacts
53+
uses: actions/upload-artifact/merge@v4
54+
with:
55+
name: remove-artifacts
56+
pattern: '*'
57+
delete-merged: true
58+
59+
- name: Delete merged artifact
60+
uses: actions/github-script@v7
61+
with:
62+
script: |
63+
github.rest.actions.deleteArtifact({
64+
owner: context.repo.owner,
65+
repo: context.repo.repo,
66+
artifact_id: ${{ steps.merge-artifacts.outputs.artifact-id }}
67+
});
4968
5069
release-public:
5170
name: Release s3 public

.github/workflows/deploy-pages.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/pipeline-build-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
ARCH=x64 ./.github/redisstack/dmg.repack.sh
102102
ARCH=arm64 ./.github/redisstack/dmg.repack.sh
103103
104-
- name: Upload x64 packages
104+
- name: Upload macos packages
105105
uses: actions/upload-artifact@v4
106106
with:
107107
name: macos-builds

.github/workflows/remove-artifacts.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)