From aa200ae8aaf86405280784290a0622e2ea618b08 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Mon, 6 Dec 2021 10:05:29 -0700 Subject: [PATCH] ci: try alternate quoting for the GH key install --- .github/workflows/gen_debian10.3.yml | 2 +- .github/workflows/gen_debian10.3_continuous.yml | 2 +- .github/workflows/gen_debian10.3_tag.yml | 2 +- .github/workflows/gen_debian11.yml | 2 +- .github/workflows/gen_debian11_continuous.yml | 2 +- .github/workflows/gen_debian11_tag.yml | 2 +- .github/workflows/gen_debian9.12.yml | 2 +- .github/workflows/gen_debian9.12_continuous.yml | 2 +- .github/workflows/gen_debian9.12_tag.yml | 2 +- ci/generate-workflows.py | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gen_debian10.3.yml b/.github/workflows/gen_debian10.3.yml index 125c6cdd5..3a9b6284f 100644 --- a/.github/workflows/gen_debian10.3.yml +++ b/.github/workflows/gen_debian10.3.yml @@ -36,7 +36,7 @@ jobs: run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg" - name: "Add GitHub package list" shell: bash - run: "echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null" + run: "echo deb \\[arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg\\] https://cli.github.com/packages stable main | tee /etc/apt/sources.list.d/github-cli.list > /dev/null" - name: "Update APT" shell: bash run: "apt update" diff --git a/.github/workflows/gen_debian10.3_continuous.yml b/.github/workflows/gen_debian10.3_continuous.yml index 2037cf564..abcaee9a6 100644 --- a/.github/workflows/gen_debian10.3_continuous.yml +++ b/.github/workflows/gen_debian10.3_continuous.yml @@ -50,7 +50,7 @@ jobs: shell: bash run: | export BUILD_REASON=Schedule - echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null + echo deb \\[arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg\\] https://cli.github.com/packages stable main | tee /etc/apt/sources.list.d/github-cli.list > /dev/null - name: "Update APT" shell: bash run: | diff --git a/.github/workflows/gen_debian10.3_tag.yml b/.github/workflows/gen_debian10.3_tag.yml index 92e830578..3e183d476 100644 --- a/.github/workflows/gen_debian10.3_tag.yml +++ b/.github/workflows/gen_debian10.3_tag.yml @@ -27,7 +27,7 @@ jobs: run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg" - name: "Add GitHub package list" shell: bash - run: "echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null" + run: "echo deb \\[arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg\\] https://cli.github.com/packages stable main | tee /etc/apt/sources.list.d/github-cli.list > /dev/null" - name: "Update APT" shell: bash run: "apt update" diff --git a/.github/workflows/gen_debian11.yml b/.github/workflows/gen_debian11.yml index ec713c8a9..573b2636f 100644 --- a/.github/workflows/gen_debian11.yml +++ b/.github/workflows/gen_debian11.yml @@ -36,7 +36,7 @@ jobs: run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg" - name: "Add GitHub package list" shell: bash - run: "echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null" + run: "echo deb \\[arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg\\] https://cli.github.com/packages stable main | tee /etc/apt/sources.list.d/github-cli.list > /dev/null" - name: "Update APT" shell: bash run: "apt update" diff --git a/.github/workflows/gen_debian11_continuous.yml b/.github/workflows/gen_debian11_continuous.yml index fbae9a2ee..cd987ee76 100644 --- a/.github/workflows/gen_debian11_continuous.yml +++ b/.github/workflows/gen_debian11_continuous.yml @@ -50,7 +50,7 @@ jobs: shell: bash run: | export BUILD_REASON=Schedule - echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null + echo deb \\[arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg\\] https://cli.github.com/packages stable main | tee /etc/apt/sources.list.d/github-cli.list > /dev/null - name: "Update APT" shell: bash run: | diff --git a/.github/workflows/gen_debian11_tag.yml b/.github/workflows/gen_debian11_tag.yml index d49aa9a40..a0ec214a1 100644 --- a/.github/workflows/gen_debian11_tag.yml +++ b/.github/workflows/gen_debian11_tag.yml @@ -27,7 +27,7 @@ jobs: run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg" - name: "Add GitHub package list" shell: bash - run: "echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null" + run: "echo deb \\[arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg\\] https://cli.github.com/packages stable main | tee /etc/apt/sources.list.d/github-cli.list > /dev/null" - name: "Update APT" shell: bash run: "apt update" diff --git a/.github/workflows/gen_debian9.12.yml b/.github/workflows/gen_debian9.12.yml index 7d7049329..c53ea519d 100644 --- a/.github/workflows/gen_debian9.12.yml +++ b/.github/workflows/gen_debian9.12.yml @@ -50,7 +50,7 @@ jobs: run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg" - name: "Add GitHub package list" shell: bash - run: "echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null" + run: "echo deb \\[arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg\\] https://cli.github.com/packages stable main | tee /etc/apt/sources.list.d/github-cli.list > /dev/null" - name: "Update APT" shell: bash run: "apt update" diff --git a/.github/workflows/gen_debian9.12_continuous.yml b/.github/workflows/gen_debian9.12_continuous.yml index b9d785a18..e42723aa6 100644 --- a/.github/workflows/gen_debian9.12_continuous.yml +++ b/.github/workflows/gen_debian9.12_continuous.yml @@ -63,7 +63,7 @@ jobs: shell: bash run: | export BUILD_REASON=Schedule - echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null + echo deb \\[arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg\\] https://cli.github.com/packages stable main | tee /etc/apt/sources.list.d/github-cli.list > /dev/null - name: "Update APT" shell: bash run: | diff --git a/.github/workflows/gen_debian9.12_tag.yml b/.github/workflows/gen_debian9.12_tag.yml index c9cd71374..656e8c238 100644 --- a/.github/workflows/gen_debian9.12_tag.yml +++ b/.github/workflows/gen_debian9.12_tag.yml @@ -41,7 +41,7 @@ jobs: run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg" - name: "Add GitHub package list" shell: bash - run: "echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null" + run: "echo deb \\[arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg\\] https://cli.github.com/packages stable main | tee /etc/apt/sources.list.d/github-cli.list > /dev/null" - name: "Update APT" shell: bash run: "apt update" diff --git a/ci/generate-workflows.py b/ci/generate-workflows.py index ae13358e5..ac2aa3c86 100755 --- a/ci/generate-workflows.py +++ b/ci/generate-workflows.py @@ -536,7 +536,7 @@ cargo build --all --release""", ), RunStep( "Add GitHub package list", - f'echo \\"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\\" | {sudo} tee /etc/apt/sources.list.d/github-cli.list > /dev/null', + f"echo deb \\\\[arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg\\\\] https://cli.github.com/packages stable main | {sudo} tee /etc/apt/sources.list.d/github-cli.list > /dev/null", ), RunStep("Update APT", f"{sudo}apt update"), RunStep("Install GH CLI", f"{sudo} apt install gh"),