Skip to content

Commit

Permalink
Fix nightly.yml bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang committed Dec 24, 2023
1 parent 0a74d62 commit bc36336
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
run: echo "chown -R $USER $GITHUB_WORKSPACE" && sudo chown -R $USER $GITHUB_WORKSPACE

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Show working copy revision
run: git branch --show-current && git rev-parse HEAD
Expand All @@ -35,7 +35,8 @@ jobs:
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/releases/tags/$TAG_NAME \
| jq -r '.id')
if [ -n "$RELEASE_ID ]; then
echo "existing nightly build release id: $RELEASE_ID"
if [ "$RELEASE_ID" != "null" ]; then
curl -X DELETE -H "Authorization: Bearer ${{ secrets.MY_GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/releases/$RELEASE_ID
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ name: tests
on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
types: [ opened, synchronize, reopened, edited ]
paths-ignore:
- 'docs/**'
- '*.md'

jobs:
tests:
Expand Down

0 comments on commit bc36336

Please sign in to comment.