mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-08 22:36:49 +02:00
Fix release schedule again (#4364)
There's no way to tell cron to run a job on the first Saturday of a month, so we tell it to run every Saturday, and manually check whether it's the first week of the month. This is not ideal because we'll get notifications about failed releases three times a month, but it's better than nothing for now.
This commit is contained in:
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -2,8 +2,9 @@ name: Release
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# Runs at 2:00 AM UTC on the first Saturday of every month
|
# Runs at 2:00 AM UTC on every Saturday
|
||||||
- cron: '0 2 1-7 * 6'
|
# We'll check below if it's the first Saturday of the month, and fail if not
|
||||||
|
- cron: '0 2 * * 6'
|
||||||
# Allow manual triggering of the workflow
|
# Allow manual triggering of the workflow
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
@ -25,6 +26,13 @@ jobs:
|
|||||||
check-and-release:
|
check-and-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check for first Saturday of the month
|
||||||
|
run: |
|
||||||
|
if (( $(date +%e) > 7 )); then
|
||||||
|
echo "This is not the first Saturday of the month"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user