mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-23 11:45:06 +03:00
fix: cleanup nightly build jobs
This commit is contained in:
parent
be6eaa3156
commit
699542933b
13
.github/workflows/nightly.yaml
vendored
13
.github/workflows/nightly.yaml
vendored
@ -1,13 +0,0 @@
|
||||
name: "Nightly build"
|
||||
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
schedule:
|
||||
# every day at 3am
|
||||
- cron: '0 3 * * *'
|
||||
|
||||
jobs:
|
||||
noop:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "Success!"
|
14
.github/workflows/publish.yaml
vendored
14
.github/workflows/publish.yaml
vendored
@ -1,5 +1,8 @@
|
||||
name: "Publish"
|
||||
on:
|
||||
schedule:
|
||||
# every day at 3am
|
||||
- cron: '0 3 * * *'
|
||||
workflow_run:
|
||||
workflows: ["Nightly build"]
|
||||
types:
|
||||
@ -79,19 +82,12 @@ jobs:
|
||||
- uses: ./.github/actions/init-env-rust
|
||||
- uses: ./.github/actions/init-env-node
|
||||
|
||||
- name: Set nightly params
|
||||
shell: bash
|
||||
if: ${{!!github.event.workflow_run }}
|
||||
run: |
|
||||
echo "channel=nightly" >> $GITHUB_ENV
|
||||
echo "bump=patch" >> $GITHUB_ENV
|
||||
|
||||
- name: Use input params
|
||||
shell: bash
|
||||
if: ${{ !github.event.workflow_run }}
|
||||
run: |
|
||||
echo "channel=${{ github.event.inputs.channel }}" >> $GITHUB_ENV
|
||||
echo "bump=${{ github.event.inputs.bump }}" >> $GITHUB_ENV
|
||||
echo "channel=${{ github.event.inputs.channel || 'nightly' }}" >> $GITHUB_ENV
|
||||
echo "bump=${{ github.event.inputs.bump || 'patch' }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Set env variable with version
|
||||
shell: bash
|
||||
|
Loading…
Reference in New Issue
Block a user