Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting/wrapping on bash run commands for setting token on git config #29

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions actions/ci-lint-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ runs:
- name: Configure github token
if: inputs.use-gati == 'true'
shell: bash
run:
git config --global url."https://x-access-token:${{
steps.get-gh-token.outputs.access-token }}@github.com/".insteadOf
"https://github.com/"
run: |
git config --global \
url."https://x-access-token:${{ steps.get-gh-token.outputs.access-token }}@github.com/".insteadOf \
"https://github.com/"

- name: Set env from files
if: inputs.use-env-files == 'true'
Expand Down
8 changes: 4 additions & 4 deletions actions/ci-test-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ runs:
- name: Configure github token
if: inputs.use-gati == 'true'
shell: bash
run:
git config --global url."https://x-access-token:${{
steps.get-gh-token.outputs.access-token }}@github.com/".insteadOf
"https://github.com/"
run: |
git config --global \
url."https://x-access-token:${{ steps.get-gh-token.outputs.access-token }}@github.com/".insteadOf \
"https://github.com/"

- name: Set env from files
if: inputs.use-env-files == 'true'
Expand Down
8 changes: 4 additions & 4 deletions actions/cicd-build-publish-artifacts-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ runs:
- name: Configure github token
if: inputs.use-gati == 'true'
shell: bash
run:
git config --global url."https://x-access-token:${{
steps.get-gh-token.outputs.access-token }}@github.com/".insteadOf
"https://github.com/"
run: |
git config --global \
url."https://x-access-token:${{ steps.get-gh-token.outputs.access-token }}@github.com/".insteadOf \
"https://github.com/"

- name: Setup go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
Expand Down
5 changes: 4 additions & 1 deletion actions/setup-github-token/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ runs:
- name: Configure github token
if: inputs.set-git-config == 'true'
shell: bash
run: git config --global url."https://x-access-token:${{ steps.get-gh-token.outputs.access-token }}@github.com/".insteadOf "https://github.com/"
run: |
git config --global \
url."https://x-access-token:${{ steps.get-gh-token.outputs.access-token }}@github.com/".insteadOf \
"https://github.com/"