Skip to content

Commit

Permalink
fix failing commits and use correct bot name and email (#27126)
Browse files Browse the repository at this point in the history
update

update

update
  • Loading branch information
davidejones authored Jan 17, 2025
1 parent 16c68af commit 371670c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/bump_synthetics_worker_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ jobs:
id: write-synthetics-worker-version
run: |
python local/bin/py/version_getter.py
- name: echo new version
run: echo ${{ steps.write-synthetics-worker-version.outputs.new_version }}

- uses: actions/checkout@v4
with:
persist-credentials: false
persist-credentials: true
- name: Write version
if: steps.write-synthetics-worker-version.outputs.new_version == 'true'
run: |-
git config user.name documentation-ci
git config user.email documentation-ci@datadoghq.com
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add ./data/synthetics_worker_versions.json
git commit -m "(Automated) Bump synthetics-worker version"
git push -f origin HEAD:refs/heads/synthetics-worker/versions
- uses: actions/github-script@v7
name: Propose change with latest versions
if: steps.write-synthetics-worker-version.outputs.new_version == 'true'
Expand All @@ -57,4 +57,4 @@ jobs:
base: "master",
maintainer_can_modify: true
})
11 changes: 6 additions & 5 deletions .github/workflows/bump_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ jobs:
return {client: repo, version: releases.data[0]["tag_name"]}
}))
console.log(versions)
return JSON.stringify(versions)
return JSON.stringify(versions, null, 2)
- uses: actions/checkout@v4
with:
persist-credentials: false
persist-credentials: true
- name: Write version
run: |-
echo '${{steps.set-versions.outputs.result}}' | jq > ./data/sdk_versions.json
mkdir -p ./data
echo '${{steps.set-versions.outputs.result}}' > ./data/sdk_versions.json
git add ./data/sdk_versions.json
git config user.name packages
git config user.email packages@datadoghq.com
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Bump SDK"
git push -f origin HEAD:refs/heads/sdk/versions
Expand Down
2 changes: 1 addition & 1 deletion config/development/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ disableLanguages:
- fr
- ja
- ko
- es
- es

0 comments on commit 371670c

Please sign in to comment.