-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2004e74
commit 5f24bcf
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build artifacts | ||
name: Clean release assets | ||
|
||
on: | ||
push: | ||
|
@@ -10,12 +10,13 @@ jobs: | |
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Get some infor from repo- | ||
- name: Get latest release info | ||
id: get_latest_release | ||
uses: octokit/[email protected] | ||
with: | ||
query: | | ||
query release($OWNER:String!,$REPO:String!) { | ||
repository(owner:$OWNER,name:$REPO) { | ||
query release($owner:String!,$repor:String!) { | ||
repository(owner:$owner,name:$repo) { | ||
releases(first:1) { | ||
nodes { | ||
name | ||
|
@@ -27,7 +28,9 @@ jobs: | |
} | ||
} | ||
variables: | | ||
OWNER: ${{ github.event.repository.owner.name }} | ||
REPO: ${{ github.event.repository.name }} | ||
owner: ${{ github.event.repository.owner.name }} | ||
repo: ${{ github.event.repository.name }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- run: "echo 'latest release: ${{ steps.get_latest_release.outputs.data }}" | ||
|