From a3db93d2a5bf4fbb8e071c6222a236d1c89c71b7 Mon Sep 17 00:00:00 2001 From: Peter Darton Date: Fri, 12 Jan 2024 14:16:29 +0000 Subject: [PATCH] =?UTF-8?q?Example=20should=20only=20dev-publish=20for=20f?= =?UTF-8?q?orked-PRs=20and=20only=20pack=20if=20tests=E2=80=A6=20=20worked?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/examples/step2_test-deploy.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/examples/step2_test-deploy.yml b/src/examples/step2_test-deploy.yml index 4e7876b..550754e 100644 --- a/src/examples/step2_test-deploy.yml +++ b/src/examples/step2_test-deploy.yml @@ -34,13 +34,30 @@ usage: tags: only: /.*/ # Because our publishing job has a tag filter, we must also apply a filter to each job it depends on. + - orb-tools/pack: + requires: + - command-tests + - /my_job + filters: + tags: + only: /.*/ + - orb-tools/publish: + name: publish_dev_test + orb_name: / + pub_type: dev + vcs_type: <> + requires: [orb-tools/pack] + context: [orb-publishing-context] + filters: + tags: + ignore: /^v[0-9]+\.[0-9]+\.[0-9]+$/ + branches: + ignore: /^pull/[0-9]+/ - orb-tools/publish: orb_name: / pub_type: production vcs_type: <> - requires: - - command-tests - - /my_job + requires: [orb-tools/pack] context: [orb-publishing-context] filters: tags: