Skip to content

Commit 4b7a168

Browse files
committed
only automatically create PR on the first of each month
1 parent 353dd37 commit 4b7a168

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ jobs:
8787
env:
8888
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8989
run: |
90+
# If this is not the first of the month, stop here.
91+
if [[ $(date -u +%d) != "01" ]]; then
92+
echo "Only creating PR on the first of each month."
93+
exit 0
94+
fi
9095
# Create commit
9196
DATE=$(date -u +%Y-%m-%d)
9297
echo "nightly-$DATE" > rust-version

0 commit comments

Comments
 (0)