Skip to content

Commit

Permalink
fix: cleanup nightly build jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Jul 2, 2024
1 parent be6eaa3 commit 6995429
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/nightly.yaml

This file was deleted.

14 changes: 5 additions & 9 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: "Publish"
on:
schedule:
# every day at 3am
- cron: '0 3 * * *'
workflow_run:
workflows: ["Nightly build"]
types:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6995429

Please sign in to comment.