Skip to content

Commit ec0b8a0

Browse files
committed
Refactor CLEAN_BRANCH_NAME
1 parent 8d4387b commit ec0b8a0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/deployment.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,12 @@ jobs:
5252
uses: actions/checkout@v4
5353

5454
- name: Sanitize Branch Name
55-
id: sanitize
5655
run: |
5756
CLEAN_BRANCH_NAME="${GITHUB_REF_NAME//\//_}"
5857
echo "CLEAN_BRANCH_NAME=${CLEAN_BRANCH_NAME}" >> $GITHUB_ENV
59-
outputs:
60-
CLEAN_BRANCH_NAME: ${{ steps.sanitize.outputs.CLEAN_BRANCH_NAME }}
6158
6259
- name: Compress Artifacts
63-
run: zip -r ${{ steps.sanitize.outputs.CLEAN_BRANCH_NAME }}.zip .
60+
run: zip -r ${{ enc.CLEAN_BRANCH_NAME }}.zip .
6461

6562
- name: Deploy to Remote
6663
env:
@@ -70,7 +67,6 @@ jobs:
7067
SSH_USER: ${{ secrets.SSH_USER }}
7168
SSH_KEY: ${{ secrets.SSH_KEY }} # SSH private key stored as a GitHub secret
7269
SSH_WEB_PATH: ${{ secrets.SSH_WEB_PATH }}
73-
CLEAN_BRANCH_NAME: ${{ steps.sanitize.outputs.CLEAN_BRANCH_NAME }}
7470
run: |
7571
#!/usr/bin/env bash
7672
set -ex -o pipefail

0 commit comments

Comments
 (0)