未验证 提交 e65f21f7 编写于 作者: A Andrey Senyaev 提交者: GitHub

Adapted rolling releases to workflow_dispatch event (#708)

上级 60630d15
...@@ -57,7 +57,8 @@ jobs: ...@@ -57,7 +57,8 @@ jobs:
run: | run: |
if [[ "${{ github.event.pull_request }}" == "true" ]]; then if [[ "${{ github.event.pull_request }}" == "true" ]]; then
echo "BUILD_COMMIT=${{ github.base_ref }}" >> $GITHUB_ENV echo "BUILD_COMMIT=${{ github.base_ref }}" >> $GITHUB_ENV
elif [[ "${{ github.event_name }}" == "schedule" ]]; then fi
if [[ "${{ github.event_name }}" == "schedule" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "ENABLE_ROLLING=1" >> $GITHUB_ENV echo "ENABLE_ROLLING=1" >> $GITHUB_ENV
fi fi
- name: Checkout - name: Checkout
...@@ -149,7 +150,6 @@ jobs: ...@@ -149,7 +150,6 @@ jobs:
SDIST: ${{ matrix.build_sdist || 0 }} SDIST: ${{ matrix.build_sdist || 0 }}
ENABLE_HEADLESS: ${{ matrix.without_gui || 0 }} ENABLE_HEADLESS: ${{ matrix.without_gui || 0 }}
ENABLE_CONTRIB: ${{ matrix.with_contrib || 0 }} ENABLE_CONTRIB: ${{ matrix.with_contrib || 0 }}
ENABLE_ROLLING: 1
steps: steps:
- name: Cleanup - name: Cleanup
run: find . -mindepth 1 -delete run: find . -mindepth 1 -delete
...@@ -158,7 +158,8 @@ jobs: ...@@ -158,7 +158,8 @@ jobs:
run: | run: |
if [[ "${{ github.event.pull_request }}" == "true" ]]; then if [[ "${{ github.event.pull_request }}" == "true" ]]; then
echo "BUILD_COMMIT=${{ github.base_ref }}" >> $GITHUB_ENV echo "BUILD_COMMIT=${{ github.base_ref }}" >> $GITHUB_ENV
elif [[ "${{ github.event_name }}" == "schedule" ]]; then fi
if [[ "${{ github.event_name }}" == "schedule" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "ENABLE_ROLLING=1" >> $GITHUB_ENV echo "ENABLE_ROLLING=1" >> $GITHUB_ENV
fi fi
- name: Checkout - name: Checkout
......
...@@ -57,7 +57,8 @@ jobs: ...@@ -57,7 +57,8 @@ jobs:
run: | run: |
if [[ "${{ github.event.pull_request }}" == "true" ]]; then if [[ "${{ github.event.pull_request }}" == "true" ]]; then
echo "BUILD_COMMIT=${{ github.base_ref }}" >> $GITHUB_ENV echo "BUILD_COMMIT=${{ github.base_ref }}" >> $GITHUB_ENV
elif [[ "${{ github.event_name }}" == "schedule" ]]; then fi
if [[ "${{ github.event_name }}" == "schedule" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "ENABLE_ROLLING=1" >> $GITHUB_ENV echo "ENABLE_ROLLING=1" >> $GITHUB_ENV
fi fi
- name: Checkout - name: Checkout
......
...@@ -59,7 +59,8 @@ jobs: ...@@ -59,7 +59,8 @@ jobs:
run: | run: |
if [[ "${{ github.event.pull_request }}" == "true" ]]; then if [[ "${{ github.event.pull_request }}" == "true" ]]; then
echo "BUILD_COMMIT=${{ github.base_ref }}" >> $GITHUB_ENV echo "BUILD_COMMIT=${{ github.base_ref }}" >> $GITHUB_ENV
elif [[ "${{ github.event_name }}" == "schedule" ]]; then fi
if [[ "${{ github.event_name }}" == "schedule" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "ENABLE_ROLLING=1" >> $GITHUB_ENV echo "ENABLE_ROLLING=1" >> $GITHUB_ENV
fi fi
- name: Checkout - name: Checkout
......
...@@ -43,7 +43,8 @@ jobs: ...@@ -43,7 +43,8 @@ jobs:
run: | run: |
if [[ "${{ github.event.pull_request }}" == "true" ]]; then if [[ "${{ github.event.pull_request }}" == "true" ]]; then
echo "BUILD_COMMIT=${{ github.base_ref }}" >> $GITHUB_ENV echo "BUILD_COMMIT=${{ github.base_ref }}" >> $GITHUB_ENV
elif [[ "${{ github.event_name }}" == "schedule" ]]; then fi
if [[ "${{ github.event_name }}" == "schedule" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "ENABLE_ROLLING=1" >> $GITHUB_ENV echo "ENABLE_ROLLING=1" >> $GITHUB_ENV
fi fi
- name: Checkout - name: Checkout
......
...@@ -44,7 +44,7 @@ jobs: ...@@ -44,7 +44,7 @@ jobs:
- name: Setup environment - name: Setup environment
shell: bash shell: bash
run: | run: |
if [[ "${{ github.event_name }}" == "schedule" ]]; then if [[ "${{ github.event_name }}" == "schedule" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "ENABLE_ROLLING=1" >> $GITHUB_ENV echo "ENABLE_ROLLING=1" >> $GITHUB_ENV
fi fi
- name: Checkout - name: Checkout
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册