Skip to content

Commit

Permalink
Revert "Allow releases on other branches than develop" (#1955)
Browse files Browse the repository at this point in the history
Reverts #1915
  • Loading branch information
a-zakir authored Feb 22, 2024
1 parent 5456374 commit 418f563
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 33 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-userguide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ on:
- doc/*
workflow_call:
inputs:
ref:
run-tests:
required: true
type: string


env:
IS_RELEASE: ${{ github.event_name == 'workflow_dispatch' }}

Expand All @@ -26,8 +25,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}

- name: Set up Python
uses: actions/setup-python@v4
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,18 @@ on:
push:
branches:
- develop

schedule:
- cron: '21 2 * * *'
workflow_call:
inputs:
run-tests:
required: true
type: string
ref:
required: true
type: string

env:
GITHUB_TOKEN: ${{ github.token }}
IS_RELEASE: ${{ github.event_name == 'workflow_dispatch' }}
IS_PUSH: ${{ github.event_name == 'push' }}
REF: ${{ inputs.ref == '' && $GITHUB_REF_NAME || inputs.ref }}

jobs:

Expand All @@ -38,7 +33,7 @@ jobs:

- name: Checkout
run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git -b ${{ env.REF }} .
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git -b $GITHUB_REF_NAME .
- name: Install gcc 10
run: |
Expand Down Expand Up @@ -139,4 +134,4 @@ jobs:
run: |
gh release upload "$tag" _build/*.tar.gz _build/*.rpm
8 changes: 0 additions & 8 deletions .github/workflows/new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,12 @@ name: Create new release
on:
workflow_dispatch:
inputs:
ref:
description: "Reference to checkout (SHA1, branch, tag)"
required: true
type: string
default: "develop"

release_tag:
description: "Release tag"
required: true

release_name:
description: "Release name"
required: true

run-tests:
description: "Run all tests (true/false)"
required: true
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/oracle8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
run-tests:
required: true
type: string
ref:
required: true
type: string

env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down Expand Up @@ -47,7 +44,7 @@ jobs:
- name: Checkout
run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git -b ${{ inputs.ref }} .
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git -b $GITHUB_REF_NAME .
- name: Config OR-Tools URL
run: |
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ on:
run-tests:
required: true
type: string
ref:
required: true
type: string

env:
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -40,8 +37,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}

- name: ccache
uses: hendrikmuhs/[email protected]
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/windows-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ on:
run-tests:
required: true
type: string
ref:
required: true
type: string

env:
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -44,8 +41,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}

- name: Config OR-Tools URL
run: |
Expand Down

0 comments on commit 418f563

Please sign in to comment.