Skip to content

Commit 55a8a69

Browse files
authored
Merge pull request #9 from reecetech/feature/use-new-output-syntax
Update the set-output commands to use the new syntax.
2 parents da7fce8 + e59d96a commit 55a8a69

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/test-and-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ jobs:
120120

121121
- id: auto-doc
122122
name: Run auto-doc 📃
123-
uses: tj-actions/auto-doc@v1.2.15
123+
uses: tj-actions/auto-doc@v2.3.2
124124
with:
125125
action: 'action.yaml'
126126

127127
- id: changes
128128
name: Verify changed files 🔎
129-
uses: tj-actions/verify-changed-files@v9.1
129+
uses: tj-actions/verify-changed-files@v14.0.1
130130
with:
131131
files: |
132132
README.md
@@ -154,7 +154,7 @@ jobs:
154154

155155
- id: version
156156
name: Calculate next version 🔢
157-
uses: reecetech/version-increment@2022.5.1
157+
uses: reecetech/version-increment@2023.3.1
158158

159159
- id: release
160160
if: ${{ github.ref_name == github.event.repository.default_branch }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,4 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130+
/transfer-action.iml

action.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,23 +77,23 @@ runs:
7777
fi
7878
7979
if [[ -n "${NAME:-}" ]] ; then
80-
echo "::set-output name=name::${NAME}"
80+
echo "name=${NAME}" >> $GITHUB_OUTPUT
8181
else
8282
if [[ "${CHECKOUT}" == 'true' ]] ; then
83-
echo "::set-output name=name::checkout"
83+
echo "name=checkout" >> $GITHUB_OUTPUT
8484
else
8585
echo "🛑 name input has not been provided, need a value"
8686
exit 3
8787
fi
8888
fi
8989
9090
if [[ -n "${DIR_PATH:-}" ]] ; then
91-
echo "::set-output name=path::${DIR_PATH}"
91+
echo "path=${DIR_PATH}" >> $GITHUB_OUTPUT
9292
else
9393
if [[ "${CHECKOUT}" == 'true' ]] ; then
94-
echo "::set-output name=path::./.git/"
94+
echo "path=./.git/" >> $GITHUB_OUTPUT
9595
else
96-
echo "::set-output name=path::./"
96+
echo "path=./" >> $GITHUB_OUTPUT
9797
fi
9898
fi
9999

0 commit comments

Comments
 (0)