Fix bug in cws-publish role
Also, fixes a bug in the job definitions in .zuul.yaml.
Change-Id: I735454ca1d231d4189d496881cfb2da71234749e
diff --git a/.zuul.yaml b/.zuul.yaml
index a34642c..56396ee 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -10,7 +10,8 @@
- "README.md"
- "i18n-config.toml"
- "cws/.*"
- - "roles/cws-upload/*"
+ - "roles/cws-publish/*"
+ - "roles/fetch-cws-log/*"
- "playbooks/nightly-build/*"
- job:
@@ -24,7 +25,8 @@
clientId: "testClientId"
refreshToken: "testRefreshToken"
files:
- - "roles/cws-upload/*"
+ - "roles/cws-publish/*"
+ - "roles/fetch-cws-log/*"
- "playbooks/nightly-build/*"
- job:
diff --git a/roles/cws-publish/tasks/main.yaml b/roles/cws-publish/tasks/main.yaml
index f8d4435..c263d24 100644
--- a/roles/cws-publish/tasks/main.yaml
+++ b/roles/cws-publish/tasks/main.yaml
@@ -29,7 +29,7 @@
- name: Upload and publish the ZIP file to the Chrome Web Store
when: not (dry_run|bool)
- ansible.builtin.command:
+ ansible.builtin.shell:
cmd: >
chrome-webstore-upload upload --auto-publish --extension-id {{ extension_id }}
--source {{ zuul.project.src_dir|quote }}/out/{{ zip_file.stdout|quote }}