Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Commit

Permalink
Address GithubActions set-ouput function deprecation
Browse files Browse the repository at this point in the history
Signed-off-by: Madalina Lazar <[email protected]>
  • Loading branch information
madalazar authored and uniemimu committed Jul 3, 2023
1 parent c355108 commit 4ffb0d7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bm-job-exit-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
ANSIBLE_DIR=$(which ansible)
if [[ -n "$ANSIBLE_DIR" ]]; then
echo $ANSIBLE_DIR
echo "::set-output name=ANSIBLE-DIR::$(echo $ANSIBLE_DIR)"
echo "ANSIBLE-DIR=$(echo $ANSIBLE_DIR)" >> $GITHUB_OUTPUT
fi
- name: Check CNO-CI repo name and branch
id: check-cno-ci-params
Expand All @@ -46,9 +46,9 @@ jobs:
CNO_CI_BRANCH=$(grep 'branch=' $CNO_CI_CONFIG_FOLDER | cut -d '=' -f 2)
echo $CNO_CI_BRANCH
if [[ -n "$CNO_CI_REPO" ]]; then
echo "::set-output name=CNO-CI-REPO-NAME::$(echo $CNO_CI_REPO)"
echo "CNO-CI-REPO-NAME=$(echo $CNO_CI_REPO)" >> $GITHUB_OUTPUT
fi
if [[ -n "$CNO_CI_BRANCH" ]]; then
echo "::set-output name=CNO-CI-BRANCH-NAME::$(echo $CNO_CI_BRANCH)"
echo "CNO-CI-BRANCH-NAME=$(echo $CNO_CI_BRANCH)" >> $GITHUB_OUTPUT
fi
8 changes: 4 additions & 4 deletions .github/workflows/checkout-tas-repo-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
id: extract_branch
run: |
if [[ "${GITHUB_EVENT_NAME}" == "push" ]]; then
echo "::set-output name=BRANCH::$(echo ${GITHUB_REF#refs/heads/})"
echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
elif [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
echo "::set-output name=BRANCH::$(echo ${GITHUB_HEAD_REF})"
echo "BRANCH=$(echo ${GITHUB_HEAD_REF})" >> $GITHUB_OUTPUT
elif [[ "${GITHUB_EVENT_NAME}" == "schedule" ]]; then
echo "::set-output name=BRANCH::$(echo ${GITHUB_REF#refs/heads/})"
echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
else
echo "::set-output name=BRANCH::INVALID_EVENT_BRANCH_UNKNOWN"
echo "BRANCH=INVALID_EVENT_BRANCH_UNKNOWN" >> $GITHUB_OUTPUT
fi
- name: Clean up TAS script folder
run: rm -rvf ${{ inputs.ci-cno-tas-ansible-folder }} && mkdir ${{ inputs.ci-cno-tas-ansible-folder }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/regression-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
id: extract_branch
run: |
if [[ "${GITHUB_EVENT_NAME}" == "schedule" ]]; then
echo "::set-output name=BRANCH::$(echo ${GITHUB_REF#refs/heads/})"
echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
elif [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
echo "::set-output name=BRANCH::${{ inputs.codeBranch }}"
echo "BRANCH=${{ inputs.codeBranch }}" >> $GITHUB_OUTPUT
else
echo "::set-output name=BRANCH::INVALID_EVENT_BRANCH_UNKNOWN"
echo "BRANCH=INVALID_EVENT_BRANCH_UNKNOWN" >> $GITHUB_OUTPUT
fi
end-to-end-test-local-K8s-v19:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
steps:
- id: get-modules
run: |
echo ${{ inputs.workingDir }} | echo "::set-output name=value::[\"$(sed -r 's/,/","/g')\"]"
echo ${{ inputs.workingDir }} | echo "value=[\"$(sed -r 's/,/","/g')\"]" >> $GITHUB_OUTPUT
gofmt-imports:
name: Gofmt & imports
Expand Down

0 comments on commit 4ffb0d7

Please sign in to comment.