Skip to content

Commit

Permalink
ci: Use GITHUB_OUTPUT envvar instead of set-output command
Browse files Browse the repository at this point in the history
  • Loading branch information
arunsathiya committed Jan 13, 2024
1 parent 60bd232 commit 2b425a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ jobs:
fi
npm version --no-git-tag-version $VERSION_STRING
echo "::set-output name=version_build::${VERSION_STRING}+${RUN_NUMBER}"
echo "version_build=${VERSION_STRING}+${RUN_NUMBER}" >> $GITHUB_OUTPUT
- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- uses: actions/cache@v2
id: npm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
id: version_step
run: |
PACKAGE_VERSION=$(node -p "require('./package.json').version")
echo "::set-output name=version::${PACKAGE_VERSION}"
echo "version=${PACKAGE_VERSION}" >> $GITHUB_OUTPUT
- name: Install dependencies
run: "npm ci"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync-wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:

- id: get-commit-info
run: |
echo "::set-output name=author::$(git log -1 --pretty=format:'%an <%ae>')"
echo "::set-output name=message::$(git show -s --format=%B)"
echo "author=$(git log -1 --pretty=format:'%an <%ae>')" >> $GITHUB_OUTPUT
echo "message=$(git show -s --format=%B)" >> $GITHUB_OUTPUT
- run: git clone https://$GITHUB_TOKEN@github.com/vmware/vrealize-developer-tools.wiki.git /tmp/wiki-repo
env:
Expand Down

0 comments on commit 2b425a9

Please sign in to comment.