Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Young Bu Park <[email protected]>
  • Loading branch information
youngbupark committed Mar 25, 2024
1 parent d1f523a commit 74a99a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/functional-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,15 @@ jobs:
- name: Generate ID for release
id: gen-id
run: |
if GITHUB_EVENT_NAME == 'schedule'; then
if [ "$GITHUB_EVENT_NAME" == "schedule"]; then
BASE_STR="RADSCHEDULE|${GITHUB_RUN_NUMBER}|${GITHUB_REPOSITORY}|${GITHUB_RUN_ID}"
else
BASE_STR="RADIUS|${GITHUB_SHA}|${GITHUB_SERVER_URL}|${GITHUB_REPOSITORY}|${GITHUB_RUN_ID}|${GITHUB_RUN_ATTEMPT}"
fi
echo "RADSCHEDULE|${GITHUB_RUN_NUMBER}|${GITHUB_REPOSITORY}|${GITHUB_RUN_ID}"
echo "RADIUS|${GITHUB_SHA}|${GITHUB_SERVER_URL}|${GITHUB_REPOSITORY}|${GITHUB_RUN_ID}|${GITHUB_RUN_ATTEMPT}"
echo $BASE_STR
UNIQUE_ID=$(echo $BASE_STR | sha1sum | head -c 10)
echo "REL_VERSION=pr-${UNIQUE_ID}" >> $GITHUB_ENV
# Set output variables to be used in the other jobs
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/long-running-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,14 @@ jobs:
id: gen-id
run: |
if [ -z "${{ steps.skip-build.outputs.SKIP_BUILD }}" ]; then
BASE_STR="RADIUS|${GITHUB_SHA}|${GITHUB_SERVER_URL}|${GITHUB_REPOSITORY}|${GITHUB_RUN_ID}|${GITHUB_RUN_ATTEMPT}"
if [ "$GITHUB_EVENT_NAME" == "schedule"]; then
BASE_STR="RADSCHEDULE|${GITHUB_RUN_NUMBER}|${GITHUB_REPOSITORY}|${GITHUB_RUN_ID}"
else
BASE_STR="RADIUS|${GITHUB_SHA}|${GITHUB_SERVER_URL}|${GITHUB_REPOSITORY}|${GITHUB_RUN_ID}|${GITHUB_RUN_ATTEMPT}"
fi
echo "RADSCHEDULE|${GITHUB_RUN_NUMBER}|${GITHUB_REPOSITORY}|${GITHUB_RUN_ID}"
echo "RADIUS|${GITHUB_SHA}|${GITHUB_SERVER_URL}|${GITHUB_REPOSITORY}|${GITHUB_RUN_ID}|${GITHUB_RUN_ATTEMPT}"
echo $BASE_STR
UNIQUE_ID=$(echo $BASE_STR | sha1sum | head -c 10)
echo "REL_VERSION=pr-${UNIQUE_ID}" >> $GITHUB_ENV
Expand Down

0 comments on commit 74a99a8

Please sign in to comment.