Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated command set-output #297

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Extract building params
id: building-params
run: |
echo "::set-output name=environment::production"
echo "environment=production" >> $GITHUB_OUTPUT

- name: Analyze JSON Package
id: package_json
Expand All @@ -29,7 +29,7 @@ jobs:
content="${content//'%'/'%25'}"
content="${content//$'\n'/'%0A'}"
content="${content//$'\r'/'%0D'}"
echo "::set-output name=packageJson::$content"
echo "packageJson=$content" >> $GITHUB_OUTPUT

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -50,9 +50,9 @@ jobs:
export IMAGE="$ECR_REGISTRY/sanctuary"
export GIT_COMMIT_VERSION=$(git rev-parse main | cut -c1-8)
export DATE=$(date +%s)
echo "::set-output name=image::$IMAGE"
echo "::set-output name=commit_version::$(echo ${GIT_COMMIT_VERSION}_${DATE})"
echo "::set-output name=version::${{fromJson(steps.package_json.outputs.packageJson).version}}"
echo "image=$IMAGE" >> $GITHUB_OUTPUT
echo "commit_version=$(echo ${GIT_COMMIT_VERSION}_${DATE})" >> $GITHUB_OUTPUT
echo "version=${{fromJson(steps.package_json.outputs.packageJson).version}}" >> $GITHUB_OUTPUT

- name: Build, tag, and push image to Amazon ECR
env:
Expand Down Expand Up @@ -170,10 +170,10 @@ jobs:
BUILD_ID=$(cat build-id.txt)
rm -rf version.txt environment.txt build-id.txt
IMAGE="$IMAGE_ECR:$VERSION"
echo "::set-output name=version::$VERSION"
echo "::set-output name=environment::$BUILDING_ENVIRONMENT"
echo "::set-output name=build-id::$BUILD_ID"
echo "::set-output name=image::$IMAGE"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "environment=$BUILDING_ENVIRONMENT" >> $GITHUB_OUTPUT
echo "build-id=$BUILD_ID" >> $GITHUB_OUTPUT
echo "image=$IMAGE" >> $GITHUB_OUTPUT

- name: Update GitOps Sandbox repository
env:
Expand Down
Loading