Skip to content

Commit 14f445e

Browse files
authored
ci: setups git outside of the doc publish action (#1378)
Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
1 parent 2aff95b commit 14f445e

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/actions/doc-publish/action.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ runs:
3131
working-directory: ${{ inputs.docs }}
3232
shell: bash
3333
run: |
34-
git config --local user.email "edgehog-machine@ispirata.com"
35-
git config --local user.name "Edgehog Bot"
3634
git add .
3735
if git diff --cached --quiet; then
3836
echo "No documentation changes to commit."

.github/workflows/docs-ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ jobs:
9494
echo "${{ secrets.publish-key }}" | ssh-add -
9595
mkdir -p ~/.ssh/
9696
ssh-keyscan github.com >> ~/.ssh/known_hosts
97+
- name: Setup git
98+
if: ${{ inputs.publish }}
99+
run: |
100+
git config user.email "edgehog-machine@ispirata.com"
101+
git config user.name "Edgehog Bot"
97102
- uses: ./edgehog/.github/actions/doc-publish
98103
if: ${{ inputs.publish }}
99104
with:

.github/workflows/release-ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ on:
2121
branches:
2222
- main
2323
- "release-*"
24+
branches-ignore:
25+
- "release-please*"
2426

2527
name: Release CI
2628

0 commit comments

Comments
 (0)