Skip to content

Commit

Permalink
Not building nightly if master unchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
galleon committed Dec 2, 2021
1 parent 3380269 commit db0cb64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,11 @@ jobs:
repo: context.repo.repo,
ref: 'tags/nightly',
});
if (ref_nightly.data.object.sha === ref_head.data.object.sha) {
console.log('No new nightly release');
return;
}
} catch (err) {
// The tag does not exist so let's create it
ref_nightly = await github.rest.git.createRef({
Expand Down

0 comments on commit db0cb64

Please sign in to comment.