Skip to content

Commit

Permalink
ci: fix nightly workflow (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin authored Aug 11, 2023
1 parent 9b6513a commit c6db9f1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,21 @@ name: Code quality checks

on:
workflow_call:
inputs:
branch:
required: false
type: string
push:
branches: [ main, 0.x ]
branches: [ main, 1.x ]

jobs:
check-code:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
ref: ${{ inputs.branch }}

- name: Set up Go
uses: actions/setup-go@v3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: v0.x Nightly code check
name: v1.x Nightly code check
on:
workflow_dispatch:
schedule:
Expand All @@ -7,7 +7,7 @@ jobs:
code-check:
uses: ./.github/workflows/code-check.yml
with:
branch: 0.x
branch: 1.x
tests:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v2
with:
ref: 0.x
ref: 1.x

- name: Set up Go
uses: actions/setup-go@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Pull request

on:
pull_request:
branches: [ main, 0.x ]
branches: [ main, 1.x ]

jobs:
check-title:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: v0.x Release new version
name: v1.x Release new version

on:
workflow_dispatch:
Expand All @@ -14,7 +14,7 @@ jobs:
release:
uses: ./.github/workflows/release-workflow.yml
with:
branch: 0.x
branch: 1.x
pre-release-tag: ${{ inputs.pre-release-tag }}
major-release: ${{ inputs.major-release }}
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
branch:
required: true
type: string
description: 'main or 0.x'
description: 'main or 1.x'

jobs:
integration-tests:
Expand Down

0 comments on commit c6db9f1

Please sign in to comment.