Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #708 from returntocorp/cgdolan/update-set-output
Browse files Browse the repository at this point in the history
Autofix: deprecated set-output
  • Loading branch information
brendongo committed Jul 14, 2023
2 parents 316a175 + 8797965 commit ac2d62c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
"https://api.github.com/app/installations/${{ secrets.SEMGREP_CI_APP_INSTALLATION_ID }}/access_tokens" | \
jq -r .token)"
echo "::add-mask::$TOKEN"
echo "::set-output name=token::$TOKEN"
echo "token=$TOKEN" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
with:
submodules: true
Expand All @@ -62,8 +62,8 @@ jobs:
git add .
git commit -m "$SUBJECT"
git push --set-upstream origin $BRANCH
echo "::set-output name=branch::$BRANCH"
echo "::set-output name=subject::$SUBJECT"
echo "branch=$BRANCH" >> $GITHUB_OUTPUT
echo "subject=$SUBJECT" >> $GITHUB_OUTPUT
- name: Create PR
id: open-pr
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
"https://api.github.com/app/installations/${{ secrets.SEMGREP_CI_APP_INSTALLATION_ID }}/access_tokens" | \
jq -r .token)"
echo "::add-mask::$TOKEN"
echo "::set-output name=token::$TOKEN"
echo "token=$TOKEN" >> $GITHUB_OUTPUT
- name: Check out code
uses: actions/checkout@v3
id: checkout
Expand All @@ -44,7 +44,7 @@ jobs:
id: latest-version
run: |
LATEST_TAG=$(git tag --list "v*.*.*" | sort -V | tail -n 1 | cut -c 2- )
echo ::set-output name=latest-version::${LATEST_TAG}
echo "latest-version=${LATEST_TAG}" >> $GITHUB_OUTPUT
- name: Get Next SemVer tag
id: next-version
uses: christian-draeger/increment-semantic-version@9d04121fb4825e033aeeaaf6d42b44b8b4e81ac5
Expand All @@ -55,7 +55,7 @@ jobs:
id: semgrep-version
run: |
SEMGREP_VERSION=$(sed -n 's|FROM returntocorp/semgrep:\(.*\)|\1|p' Dockerfile)
echo "::set-output name=semgrep-version::$SEMGREP_VERSION"
echo "semgrep-version=$SEMGREP_VERSION" >> $GITHUB_OUTPUT
- name: Add New SemVer (Immutable) Tag
id: create-tag
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
name: Setup package managers
run: |
poetry config virtualenvs.in-project true
echo "::set-output name=installed-semgrep-version::$(sed --quiet --regexp-extended 's/^FROM returntocorp[/]semgrep:(.+)$/\1/p' Dockerfile)"
echo "installed-semgrep-version=$(sed --quiet --regexp-extended 's/^FROM returntocorp[/]semgrep:(.+)$/\1/p' Dockerfile)" >> $GITHUB_OUTPUT
- id: reuse-poetry-virtualenv
name: Reuse poetry's virtualenv
Expand Down

0 comments on commit ac2d62c

Please sign in to comment.