Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
gh release view "nightly" && gh release delete "nightly" -y --cleanup-tag || true
gh release view "nightly" --repo ${{ github.repository }} && gh release delete "nightly" -y --cleanup-tag --repo ${{ github.repository }} || true

- name: Create Rolling Nightly Release
id: rolling_release
Expand All @@ -164,7 +164,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
gh release list --limit 100 | grep "nightly-" | while read -r line; do
gh release list --limit 100 --repo ${{ github.repository }} | grep "nightly-" | while read -r line; do
tag=$(echo "$line" | awk '{print $1}')
date_str=${tag#nightly-}
if [[ $date_str =~ ^[0-9]{4}\.[0-9]{2}\.[0-9]{2}$ ]]; then
Expand All @@ -173,7 +173,7 @@ jobs:
limit_date=$(date -d "90 days ago" +%s)
if [ "$release_date" -lt "$limit_date" ]; then
echo "Deleting old release $tag"
gh release delete "$tag" -y --cleanup-tag
gh release delete "$tag" -y --cleanup-tag --repo ${{ github.repository }}
fi
fi
done
Loading