Merge pull request #23163 from mattermost/MM-52493

[MM-52493] workflows/artifacts.yml: do not upload build artifacts for branches
Этот коммит содержится в:
fr0mdual
2023-04-26 18:15:34 +01:00
коммит произвёл GitHub
родитель 812689030b 1908e7397c
Коммит e3e7349a35

2
.github/workflows/artifacts.yml поставляемый
Просмотреть файл

@@ -27,11 +27,9 @@ jobs:
path: server/dist
- name: cd/Upload artifacts to S3
env:
BRANCH_NAME: ${{ github.event.workflow_run.head_branch }}
REPO_NAME: ${{ github.event.repository.name }}
COMMIT_SHA: ${{ github.event.workflow_run.head_sha }}
run: |
aws s3 cp server/dist/ s3://pr-builds.mattermost.com/$REPO_NAME/$BRANCH_NAME/ --acl public-read --cache-control "no-cache" --recursive --no-progress
aws s3 cp server/dist/ s3://pr-builds.mattermost.com/$REPO_NAME/commit/$COMMIT_SHA/ --acl public-read --cache-control "no-cache" --recursive --no-progress
build-docker: