Skip to content

Commit

Permalink
chore: fix deprecated workflow set-output commands (#946)
Browse files Browse the repository at this point in the history
Update the deprecated set-output GitHub workflow
commands to use the new syntax.
  • Loading branch information
patheard authored Sep 26, 2023
1 parent ad5254e commit 120ec32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check_eks_ami_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
LATEST_AMI="$(aws ssm get-parameter \
--name /aws/service/eks/optimized-ami/$CLUSTER_VERSION/amazon-linux-2/recommended/release_version \
--query 'Parameter.Value' --output text)"
echo "::set-output name=ami::${LATEST_AMI}"
echo "ami=${LATEST_AMI}" >> "$GITHUB_OUTPUT"
- name: Get Staging cluster node group AMI image release version
id: current
Expand All @@ -39,7 +40,8 @@ jobs:
--cluster-name ${{ env.EKS_CLUSTER_NAME }} \
--nodegroup-name ${{ env.EKS_CLUSTER_NODE_GROUP_NAME }} \
--query 'nodegroup.releaseVersion' --output text)"
echo "::set-output name=ami::${CURRENT_AMI}"
echo "ami=${CURRENT_AMI}" >> "$GITHUB_OUTPUT"
- name: Post to slack
if: steps.latest.outputs.ami != steps.current.outputs.ami
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/check_eks_cluster_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ jobs:
| jq -r ".addons[] | .addonVersions[] | .compatibilities[] | .clusterVersion" \
| sort -r \
| head -1)"
echo "::set-output name=version::${LATEST_VERSION}"
echo "version=${LATEST_VERSION}" >> "$GITHUB_OUTPUT"
- name: Get Staging cluster version
id: current
run: |
CLUSTER_VERSION="$(aws eks describe-cluster \
--name ${{ env.EKS_CLUSTER_NAME }} \
--query 'cluster.version' --output text)"
echo "::set-output name=version::${CLUSTER_VERSION}"
echo "version=${CLUSTER_VERSION}" >> "$GITHUB_OUTPUT"
- name: Post to slack
if: steps.latest.outputs.version != steps.current.outputs.version
Expand Down

0 comments on commit 120ec32

Please sign in to comment.