don't create release pull requests on merge (#1298)

This commit is contained in:
Justin Hernandez
2025-10-17 08:47:21 -07:00
committed by GitHub
parent e01ec188af
commit 14b7583747

View File

@@ -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 }}"