Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Mar 18, 2024
1 parent 8ad0a5d commit e9712c0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: "Load PR info"
id: loadinfo
run: |
run_builds="true"
run_builds="false"
has_docker_image_label="${{ contains(github.event.pull_request.labels.*.name, 'build-docker-image') }}"
echo "docker image label: $has_docker_image_label"
Expand All @@ -48,6 +48,7 @@ jobs:
if [[ ! -z "$manual_tag" ]]; then
has_docker_image_label="true"
branch_name="$manual_tag"
run_builds="true"
fi
if [[ "$branch_name" == "master" ]] || [[ "$branch_name" =~ ^v[0-9] ]]; then
Expand All @@ -60,13 +61,9 @@ jobs:
echo "build_docker=$has_docker_image_label" >> $GITHUB_OUTPUT
echo "docker_tag=$branch_name" >> $GITHUB_OUTPUT
check_source:
name: "Run code checks"
uses: ./.github/workflows/_shared-check.yaml

build_binaries:
name: "Build Dora"
needs: [prinfo, check_source]
needs: [prinfo]
if: ${{ needs.prinfo.outputs.run_builds == 'true' }}
uses: ./.github/workflows/_shared-build.yaml
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: write

jobs:

check_source:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
description: "Version Number ('0.x.y')"
required: true

permissions:
contents: write

jobs:
build_binaries:
name: "Build Dora"
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

name: Check PR

on:
pull_request:
branches: [ "master" ]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
check_source:
name: "Run code checks"
uses: ./.github/workflows/_shared-check.yaml

0 comments on commit e9712c0

Please sign in to comment.