Skip to content

Commit 9482847

Browse files
committed
WIP: add check to diff workflow
Change-Id: I634e14f3876bc17f9c10110a185673bfda392aca
1 parent 58f6cc8 commit 9482847

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/diff_chromium_branches.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,19 @@ jobs:
7575
upstream_branches: ${{ steps.set-upstream-branches.outputs.upstream_branches }}
7676
downstream_branch: ${{ steps.set-downstream-branch.outputs.downstream_branch }}
7777
code_ownership: ${{ steps.set-code-ownership.outputs.code_ownership }}
78+
calculate_diffs_without_upstream:
79+
needs: initialize
80+
runs-on: ubuntu-latest
81+
if: ${{ needs.initialize.outputs.upstream_branches == '' }}
82+
steps:
83+
- name: BLAH
84+
run: |
85+
set -eux
86+
echo "hello there's no upstream"
7887
calculate_diffs:
7988
needs: initialize
89+
# Check if there's any diff to perform
90+
if: ${{ needs.initialize.outputs.upstream_branches != '' }}
8091
runs-on: ubuntu-latest
8192
strategy:
8293
fail-fast: false

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ repos:
3636
- id: end-of-file-fixer
3737
- id: mixed-line-ending
3838
- id: trailing-whitespace
39+
- repo: https://github.com/SortaCookie/actionlint
40+
rev: v1.7.7
41+
hooks:
42+
- id: actionlint
43+
files: ^.github/
3944
- repo: local
4045
hooks:
4146
- id: chromium-pre-commit

0 commit comments

Comments
 (0)