Skip to content

Commit

Permalink
Use env var directly without reassign
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinkrzeminski committed Sep 20, 2024
1 parent aa13ef9 commit 9b22ad9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy-to-stream-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
WORKING_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
SRC_DIR="$ROOT_DIR/build"
DIST_DIR="$ROOT_DIR/dist"
DIST_REPO=${{ env.DIST_REPO }}
DIST_BRANCH="${GITHUB_REF#refs/heads/}"
DIST_TAG="${GITHUB_REF#refs/tags/}"
COMMIT_MESSAGE="$(git log -1 --oneline)"
Expand All @@ -42,7 +41,6 @@ jobs:
echo "WORKING_BRANCH=$WORKING_BRANCH" >> $GITHUB_ENV
echo "SRC_DIR=$SRC_DIR" >> $GITHUB_ENV
echo "DIST_DIR=$DIST_DIR" >> $GITHUB_ENV
echo "DIST_REPO=$DIST_REPO" >> $GITHUB_ENV
echo "DIST_BRANCH=$DIST_BRANCH" >> $GITHUB_ENV
echo "DIST_TAG=$DIST_TAG" >> $GITHUB_ENV
echo "COMMIT_MESSAGE=$COMMIT_MESSAGE" >> $GITHUB_ENV
Expand All @@ -65,7 +63,7 @@ jobs:
export GIT_DIR="$DIST_DIR/.git"
export GIT_WORK_TREE="$DIST_DIR"
git clone --progress --verbose "$DIST_REPO" "$DIST_DIR/.git"
git clone --progress --verbose ${{ env.DIST_REPO }} "$DIST_DIR/.git"
git checkout -B "$DIST_BRANCH"
# Use the release bundle as the work tree.
Expand All @@ -83,7 +81,6 @@ jobs:
fi
env:
DIST_DIR: ${{ env.DIST_DIR }}
DIST_REPO: ${{ env.DIST_REPO }}
DIST_BRANCH: ${{ env.DIST_BRANCH }}
DIST_TAG: ${{ env.DIST_TAG }}
COMMIT_MESSAGE: ${{ env.COMMIT_MESSAGE }}

0 comments on commit 9b22ad9

Please sign in to comment.