Skip to content

Commit

Permalink
change set-output to GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
This will fix #62
  • Loading branch information
zkamvar committed Nov 1, 2022
1 parent 811de09 commit 4d5577f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions check-valid-credentials/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ then

if [[ ${WORKFLOW} == 1 ]]
then
echo "::set-output name=wf::true"
echo "wf=true" >> $GITHUB_OUTPUT
rm -f $GITHUB_STEP_SUMMARY
fi

if [[ ${REPO} == 1 ]]
then
echo "::set-output name=repo::true"
echo "repo=true" >> $GITHUB_OUTPUT
rm -f $GITHUB_STEP_SUMMARY
fi

Expand Down
8 changes: 4 additions & 4 deletions setup-sandpaper/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ runs:
install.packages('remotes')
deps <- remotes::package_deps("sandpaper", dependencies = TRUE)
saveRDS(deps, ".github/r-depends.rds")
cat("::group::Install remotes\n")
shell: Rscript {0}

- name: Get R and OS version
id: get-version
run: |
cat("::set-output name=os-version::", sessionInfo()$running, "\n", sep = "")
cat("::set-output name=r-version::", R.Version()$version.string, "\n", sep = "")
cat("::endgroup::\n")
shell: Rscript {0}
echo "$(R -s -e 'cat(sessionInfo()$running)')" >> $GITHUB_OUTPUT
echo "$(R -s -e 'cat(R.Version()$version.string)'" >> $GITHUB_OUTPUT
shell: bash

- name: Install apt dependencies for Ubuntu
id: run-apt
Expand Down
2 changes: 1 addition & 1 deletion update-styles/update-styles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ then
else
echo "Creating squash commit later"
fi
echo "::set-output name=update::true"
echo "update=true" >> $GITHUB_OUTPUT
else
echo "Up to date!"
git branch -D styles-ref
Expand Down
5 changes: 3 additions & 2 deletions update-workflows/update-workflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ if [[ ${CURRENT} != ${UPSTREAM} ]]; then
echo "::endgroup::"
NEEDS_UPDATE=$(git status --porcelain)
if [[ ${NEEDS_UPDATE} ]]; then
echo "::set-output name=old::$(echo ${CURRENT})"
echo "::set-output name=new::$(echo ${UPSTREAM})"
echo "old=$(echo ${CURRENT})" >> $GITHUB_OUTPUT
echo "new=$(echo ${UPSTREAM})" >> $GITHUB_OUTPUT
echo "date=$(date --utc -Iminutes)" >> $GITHUB_OUTPUT
echo "Updating version number to ${UPSTREAM}"
echo ${UPSTREAM} > .github/workflows/sandpaper-version.txt
else
Expand Down

0 comments on commit 4d5577f

Please sign in to comment.