From 081375e30c4759d2bf628bd695e6aaa6a8c9be16 Mon Sep 17 00:00:00 2001 From: namse Date: Fri, 2 Aug 2024 11:21:26 +0000 Subject: [PATCH] Set env using export --- .github/workflows/deploy-luda-editor.yml_disabled | 4 ++-- .github/workflows/destory-luda-editor.yml_disabled | 4 ++-- .github/workflows/oioi-agent-image-push.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-luda-editor.yml_disabled b/.github/workflows/deploy-luda-editor.yml_disabled index 3bd21aadc..e149e0ace 100644 --- a/.github/workflows/deploy-luda-editor.yml_disabled +++ b/.github/workflows/deploy-luda-editor.yml_disabled @@ -27,10 +27,10 @@ jobs: - name: set BRANCH_NAME, STACK_NAME run: | - BRANCH_NAME=$(echo "${{ github.event.ref }}" | tr "[:upper:]" "[:lower:]" | sed -e "s#refs/heads/##g" -e 's/\//-/g' -e 's/|/-/g') + export BRANCH_NAME=$(echo "${{ github.event.ref }}" | tr "[:upper:]" "[:lower:]" | sed -e "s#refs/heads/##g" -e 's/\//-/g' -e 's/|/-/g') echo $BRANCH_NAME echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV - STACK_NAME=$(echo $BRANCH_NAME | tr "[:upper:]" "[:lower:]" | tr -cd '[:alnum:]') + export STACK_NAME=$(echo $BRANCH_NAME | tr "[:upper:]" "[:lower:]" | tr -cd '[:alnum:]') echo $STACK_NAME echo "STACK_NAME=$STACK_NAME" >> $GITHUB_ENV diff --git a/.github/workflows/destory-luda-editor.yml_disabled b/.github/workflows/destory-luda-editor.yml_disabled index 162af0ab1..9990de065 100644 --- a/.github/workflows/destory-luda-editor.yml_disabled +++ b/.github/workflows/destory-luda-editor.yml_disabled @@ -15,10 +15,10 @@ jobs: - name: set BRANCH_NAME, STACK_NAME run: | - BRANCH_NAME=$(echo "${{ github.event.ref }}" | tr "[:upper:]" "[:lower:]" | sed -e "s#refs/heads/##g" -e 's/\//-/g' -e 's/|/-/g') + export BRANCH_NAME=$(echo "${{ github.event.ref }}" | tr "[:upper:]" "[:lower:]" | sed -e "s#refs/heads/##g" -e 's/\//-/g' -e 's/|/-/g') echo $BRANCH_NAME echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV - STACK_NAME=$(echo $BRANCH_NAME | tr "[:upper:]" "[:lower:]" | tr -cd '[:alnum:]') + export STACK_NAME=$(echo $BRANCH_NAME | tr "[:upper:]" "[:lower:]" | tr -cd '[:alnum:]') echo $STACK_NAME echo "STACK_NAME=$STACK_NAME" >> $GITHUB_ENV diff --git a/.github/workflows/oioi-agent-image-push.yml b/.github/workflows/oioi-agent-image-push.yml index 3ce993cf5..f360b47f8 100644 --- a/.github/workflows/oioi-agent-image-push.yml +++ b/.github/workflows/oioi-agent-image-push.yml @@ -125,10 +125,10 @@ jobs: - name: Deploy test cdk working-directory: oioi run: | - BRANCH_NAME=$(echo "${GITHUB_REF}" | tr "[:upper:]" "[:lower:]" | sed -e "s#refs/heads/##g" -e 's/\//-/g' -e 's/|/-/g') + export BRANCH_NAME=$(echo "${GITHUB_REF}" | tr "[:upper:]" "[:lower:]" | sed -e "s#refs/heads/##g" -e 's/\//-/g' -e 's/|/-/g') echo BRANCH_NAME = $BRANCH_NAME echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV - STACK_NAME=$(echo $BRANCH_NAME | tr "[:upper:]" "[:lower:]" | tr -cd '[:alnum:]') + export STACK_NAME=$(echo $BRANCH_NAME | tr "[:upper:]" "[:lower:]" | tr -cd '[:alnum:]') echo STACK_NAME = $STACK_NAME echo "STACK_NAME=$STACK_NAME" >> $GITHUB_ENV