Skip to content

Commit

Permalink
action: Use $GITHUB_OUTPUT instead of deprecated ::set-output
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcinl committed Oct 14, 2022
1 parent 56d38bc commit 4cd24e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ jobs:
uses: actions/checkout@v3

- name: Setup MPI
id: setup-mpi
uses: ./
with:
mpi: ${{ matrix.mpi }}

- name: Show MPI name
run: echo "${{ steps.setup-mpi.outputs.mpi }}"

- name: Show MPI info
run: mpichversion
if: ${{ matrix.mpi == 'mpich' }}
Expand Down
2 changes: 1 addition & 1 deletion setup-mpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ case $(uname) in
;;
esac

echo "::set-output name=mpi::${MPI}"
echo "mpi=${MPI}" >> $GITHUB_OUTPUT

case $MPI in
mpich)
Expand Down

0 comments on commit 4cd24e7

Please sign in to comment.