From 0fa95337a24c5f1af3329f0abcc44f8da6ce8df3 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Tue, 12 Nov 2024 21:14:46 +0530 Subject: [PATCH] chore(actions): use cat heredoc for auth config instead --- .github/workflows/publish.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4b22486..0612c47 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,9 +30,12 @@ jobs: - name: Authenticate into pesde registry run: | - echo -e "default_index = "https://github.com/daimond113/pesde-index"\n$(cat $HOME/.pesde/config.toml)" > $HOME/.pesde/config.toml - echo '[tokens]' > $HOME/.pesde/config.toml - echo '"https://github.com/daimond113/pesde-index.git" = "${{ secrets.PESDE_TOKEN }}"' >> $HOME/.pesde/config.toml + cat > $HOME/.pesde/config.toml << 'EOF' + default_index = "https://github.com/daimond113/pesde-index" + scripts_repo = "https://github.com/daimond113/pesde-scripts" + [tokens] + "https://github.com/daimond113/pesde-index.git" = "${{ secrets.PESDE_TOKEN }}" + EOF - name: Publish run: pesde publish --dry-run