Remove the release_branches check, other rules we have setup lock it up well enough

This commit is contained in:
MKLeb 2023-05-03 13:41:41 -04:00 committed by Pedro Algarvio
parent 4e8b77df67
commit 44b2c01855
5 changed files with 0 additions and 45 deletions

View file

@ -44,17 +44,6 @@ jobs:
require: admin
username: ${{ github.triggering_actor }}
- name: Check Branch
run: |
echo "Trying to run the staging workflow from branch ${{ github.ref_name }}"
if [ "${{ contains(fromJSON('["master", "3006.x"]'), github.ref_name) }}" != "true" ]; then
echo "Running the staging workflow from the ${{ github.ref_name }} branch is not allowed"
echo "Allowed branches: master, 3006.x"
exit 1
else
echo "Allowed to release from branch ${{ github.ref_name }}"
fi
prepare-workflow:
name: Prepare Workflow Run
runs-on:

View file

@ -57,17 +57,6 @@ jobs:
require: admin
username: ${{ github.triggering_actor }}
- name: Check Branch
run: |
echo "Trying to run the staging workflow from branch ${{ github.ref_name }}"
if [ "${{ contains(fromJSON('["master", "3006.x"]'), github.ref_name) }}" != "true" ]; then
echo "Running the staging workflow from the ${{ github.ref_name }} branch is not allowed"
echo "Allowed branches: master, 3006.x"
exit 1
else
echo "Allowed to release from branch ${{ github.ref_name }}"
fi
prepare-workflow:
name: Prepare Workflow Run
runs-on: ubuntu-latest

View file

@ -9,7 +9,6 @@
<%- set skip_junit_reports_check = skip_junit_reports_check|default("${{ github.event_name == 'pull_request' }}") %>
<%- set gpg_key_id = "64CBBC8173D76B3F" %>
<%- set prepare_actual_release = prepare_actual_release | default(False) %>
<%- set release_branches = ["master", "3006.x"] %>
---
<%- block name %>
name: <{ workflow_name }>

View file

@ -61,17 +61,6 @@ permissions:
require: admin
username: ${{ github.triggering_actor }}
- name: Check Branch
run: |
echo "Trying to run the staging workflow from branch ${{ github.ref_name }}"
if [ "${{ contains(fromJSON('<{ release_branches|tojson }>'), github.ref_name) }}" != "true" ]; then
echo "Running the staging workflow from the ${{ github.ref_name }} branch is not allowed"
echo "Allowed branches: <{ release_branches|join(', ') }>"
exit 1
else
echo "Allowed to release from branch ${{ github.ref_name }}"
fi
<%- endblock pre_jobs %>

View file

@ -71,17 +71,6 @@ concurrency:
require: admin
username: ${{ github.triggering_actor }}
- name: Check Branch
run: |
echo "Trying to run the staging workflow from branch ${{ github.ref_name }}"
if [ "${{ contains(fromJSON('<{ release_branches|tojson }>'), github.ref_name) }}" != "true" ]; then
echo "Running the staging workflow from the ${{ github.ref_name }} branch is not allowed"
echo "Allowed branches: <{ release_branches|join(', ') }>"
exit 1
else
echo "Allowed to release from branch ${{ github.ref_name }}"
fi
<%- endblock pre_jobs %>