Skip to content

Commit de47bde

Browse files
committed
Step 2 /test
1 parent 45b7a3a commit de47bde

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/verify-release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,9 @@ jobs:
148148
name: "PHIVE: ${{ matrix.pharfile }}"
149149

150150
steps:
151-
- name: Retrieve latest release info
152-
uses: octokit/[email protected]
151+
- name: Retrieve latest release info (including prereleases)
153152
id: get_latest_release
154-
with:
155-
route: GET /repos/PHPCSStandards/PHP_CodeSniffer/releases/latest
153+
run: gh release list --repo PHPCSStandards/PHP_CodeSniffer --limit 1 --json tagName
156154
env:
157155
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
158156

@@ -163,7 +161,7 @@ jobs:
163161
- name: Grab latest tag name from API response
164162
id: version
165163
run: |
166-
echo "TAG=${{ fromJson(steps.get_latest_release.outputs.data).tag_name }}" >> "$GITHUB_OUTPUT"
164+
echo "TAG=${{ fromJson(steps.get_latest_release.outputs.data).tagName }}" >> "$GITHUB_OUTPUT"
167165
168166
- name: "DEBUG: Show tag name found in API response"
169167
run: "echo ${{ steps.version.outputs.TAG }}"

0 commit comments

Comments
 (0)