aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/pull-docker-dryrun.yml
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-05-25 09:33:31 +0800
committerGitHub <noreply@github.com>2023-05-25 01:33:31 +0000
commit93c6a9a652460f89fc719024c435cacbb235d302 (patch)
tree1dc3c6a60fe619580fcc949f4b2653f1e722a658 /.github/workflows/pull-docker-dryrun.yml
parentd7e669c3719f74340096c212a1228bb11c028652 (diff)
downloadgitea-93c6a9a652460f89fc719024c435cacbb235d302.tar.gz
gitea-93c6a9a652460f89fc719024c435cacbb235d302.zip
Use file filters action instead of Github's files filter (#24877)
Inspired by https://github.com/go-gitea/gitea/pull/24530#issuecomment-1558815301 This PR use a file filter action to do different CI jobs according changed files types. All types are defined in `.github/file-filters.yml`. Now there are 4 types, `docs`, `backend`, `frontend` and `build`. Then if a PR only changed docs files, those CI jobs which passed the conditions will run, and other types are also like this. --------- Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to '.github/workflows/pull-docker-dryrun.yml')
-rw-r--r--.github/workflows/pull-docker-dryrun.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/pull-docker-dryrun.yml b/.github/workflows/pull-docker-dryrun.yml
index c3cdefc7a7..89b0c5253c 100644
--- a/.github/workflows/pull-docker-dryrun.yml
+++ b/.github/workflows/pull-docker-dryrun.yml
@@ -2,16 +2,18 @@ name: docker-dryrun
on:
pull_request:
- paths-ignore:
- - "docs/**"
- - "*.md"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
+ files-changed:
+ uses: ./.github/workflows/files-changed.yml
+
docker-dryrun:
+ if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.frontend == 'true'
+ needs: files-changed
runs-on: ubuntu-latest
steps:
- uses: docker/setup-buildx-action@v2