Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2da286b

Browse files
committed
only run ci if needed
1 parent555093e commit2da286b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ jobs:
1010
working-directory:pgml-extension
1111
steps:
1212
-uses:actions/checkout@v3
13+
-name:Changed files in pgml-extension
14+
id:pgml_extension_changed
15+
run:|
16+
echo "PGML_EXTENSION_CHANGED_FILES=$(git diff --name-only HEAD HEAD~1 . | wc -l)" >> $GITHUB_OUTPUT
1317
-name:Install dependencies
18+
if:steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
1419
run:|
1520
sudo apt-get update && \
1621
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC sudo apt-get install -y \
@@ -29,16 +34,19 @@ jobs:
2934
sudo pip3 install -r requirements.txt
3035
-name:Cache dependencies
3136
uses:buildjet/cache@v3
37+
if:steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
3238
with:
3339
path:|
3440
~/.cargo
3541
pgml-extension/target
3642
~/.pgrx
3743
key:${{ runner.os }}-rust-3-${{ hashFiles('pgml-extension/Cargo.lock') }}
3844
-name:Submodules
45+
if:steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
3946
run:|
4047
git submodule update --init --recursive
4148
-name:Run tests
49+
if:steps.pgml_extension_changed.outputs.PGML_EXTENSION_CHANGED_FILES != '0'
4250
run:|
4351
curl https://sh.rustup.rs -sSf | sh -s -- -y
4452
source ~/.cargo/env

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp