mirror of
https://github.com/selfxyz/self.git
synced 2026-01-09 14:48:06 -05:00
don't create release pull requests on merge (#1298)
This commit is contained in:
24
.github/workflows/release-calendar.yml
vendored
24
.github/workflows/release-calendar.yml
vendored
@@ -31,11 +31,6 @@ on:
|
||||
- staging
|
||||
- production
|
||||
default: staging
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
paths:
|
||||
- ".github/workflows/release-calendar.yml"
|
||||
schedule:
|
||||
# Friday 17:00 UTC (see timezone conversions above) to prepare the weekend staging PR.
|
||||
- cron: "0 17 * * 5"
|
||||
@@ -58,18 +53,6 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
# Allow push events (when workflow file is modified) to run
|
||||
if [ "${{ github.event_name }}" == "push" ]; then
|
||||
if [ "${{ github.ref_name }}" == "dev" ]; then
|
||||
echo "Triggered by push event on dev. Running staging job."
|
||||
echo "continue=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "Triggered by push event on non-dev. Skipping staging job."
|
||||
echo "continue=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Allow workflow_dispatch based on input
|
||||
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
||||
JOB_TO_RUN="${{ inputs.job_to_run }}"
|
||||
@@ -226,13 +209,6 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
# Skip production job on push events (we only test on dev)
|
||||
if [ "${{ github.event_name }}" == "push" ]; then
|
||||
echo "Push event: skipping production job."
|
||||
echo "continue=false" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Allow workflow_dispatch based on input
|
||||
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
||||
JOB_TO_RUN="${{ inputs.job_to_run }}"
|
||||
|
||||
Reference in New Issue
Block a user