From 2cc0ea6a16c0ff99db144fe4cb2e9130871d7997 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Sat, 8 Oct 2022 13:28:21 +0200 Subject: [PATCH] ci: tune workflow triggers --- .github/workflows/docker.yml | 25 ++++++++++++++++++++++-- .github/workflows/release.yml | 23 +++++++++++++++++++++- .github/workflows/test.yml | 36 +++++++++++++++++++++++++---------- README.md | 2 +- 4 files changed, 72 insertions(+), 14 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5010e4a6..e8ba0aef 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,8 +1,29 @@ +# This is a GitHub workflow defining a set of jobs with a set of steps. +# ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions +# name: Docker build on: - - push - - pull_request + pull_request: + paths-ignore: + - "docs/**" + - "**.md" + - "**.rst" + - ".github/workflows/*" + - "!.github/workflows/docker.yml" + push: + paths-ignore: + - "docs/**" + - "**.md" + - "**.rst" + - ".github/workflows/*" + - "!.github/workflows/docker.yml" + branches-ignore: + - "dependabot/**" + - "pre-commit-ci-update-config" + tags: + - "**" + workflow_dispatch: jobs: docker: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1e1d0f4..fc868b6f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,29 @@ +# This is a GitHub workflow defining a set of jobs with a set of steps. +# ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions +# name: Publish on: - push: pull_request: + paths-ignore: + - "docs/**" + - "**.md" + - "**.rst" + - ".github/workflows/*" + - "!.github/workflows/release.yml" + push: + paths-ignore: + - "docs/**" + - "**.md" + - "**.rst" + - ".github/workflows/*" + - "!.github/workflows/release.yml" + branches-ignore: + - "dependabot/**" + - "pre-commit-ci-update-config" + tags: + - "**" + workflow_dispatch: jobs: build-n-publish: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 851b2e1a..569bf4b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,19 +1,35 @@ -# Useful GitHub Actions docs: +# This is a GitHub workflow defining a set of jobs with a set of steps. +# ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions # -# - https://help.github.com/en/actions -# - https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions -# - https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow -# - https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions - -name: Continuous Integration +name: Test on: - push: pull_request: + paths-ignore: + - "docs/**" + - "**.md" + - "**.rst" + - ".github/workflows/*" + - "!.github/workflows/test.yml" + push: + paths-ignore: + - "docs/**" + - "**.md" + - "**.rst" + - ".github/workflows/*" + - "!.github/workflows/test.yml" + branches-ignore: + - "dependabot/**" + - "pre-commit-ci-update-config" + tags: + - "**" schedule: - # Weekly test so we know if tests break for external reasons - # https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events + # Run weekly test so we know if tests break for external reasons + # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#scheduled-events + # + # At 10:36 on Sunday (https://crontab.guru) - cron: '36 10 * * 0' + workflow_dispatch: # Global environment variables env: diff --git a/README.md b/README.md index 7b055bfb..84949e84 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # repo2docker -[![Build Status](https://github.com/jupyterhub/repo2docker/workflows/Continuous%20Integration/badge.svg)](https://github.com/jupyterhub/repo2docker/actions) +[![Build Status](https://github.com/jupyterhub/repo2docker/workflows/Test/badge.svg)](https://github.com/jupyterhub/repo2docker/actions) [![Documentation Status](https://readthedocs.org/projects/repo2docker/badge/?version=latest)](http://repo2docker.readthedocs.io/en/latest/?badge=latest) [![Contribute](https://img.shields.io/badge/I_want_to_contribute!-grey?logo=jupyter)](https://repo2docker.readthedocs.io/en/latest/contributing/contributing.html) [![Docker Repository on Quay](https://img.shields.io/badge/quay.io-container-green "Docker Repository on Quay")](https://quay.io/repository/jupyterhub/repo2docker?tab=tags)