Skip to content

Commit

Permalink
Update auto-nightly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git authored Jan 21, 2025
1 parent cf055bc commit 00b5248
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/auto-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ jobs:
steps:
- name: "Checkout sources"
uses: actions/checkout@v4
- uses: actions/github-script@v6
with:
script: |
for (const id in github.rest.repos) {
try {
if (typeof(github.rest.repos[id]) === "function") {
console.log(id);
}
} catch (err) {
console.error(err);
}
}
- name: "Setup Java"
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -64,6 +52,23 @@ jobs:
with:
retries: 3
script: |
const response = await github.rest.git.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/nightly'
}).catch(response => response)
console.log(response.status)
console.log(response.message)
console.log(response.id)
console.log('---')
const response = await github.rest.git.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/nightlyX'
}).catch(response => response)
console.log(response.status)
console.log(response.message)
return
github.rest.git.deleteRef({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 00b5248

Please sign in to comment.