Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bgdeutsch committed Nov 17, 2023
1 parent 048afc5 commit 750e750
Showing 1 changed file with 32 additions and 29 deletions.
61 changes: 32 additions & 29 deletions .github/workflows/bump_versions.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
on:
schedule:
# At 08:00 on every day-of-week from Monday through Friday.
- cron: '0 8 * * 1-5'
push:
branches: [brian.deutsch/ddev-version-automation]
# schedule:
# # At 08:00 on every day-of-week from Monday through Friday.
# - cron: '0 8 * * 1-5'

permissions: {}
jobs:
Expand All @@ -24,7 +26,8 @@ jobs:
'datadog-api-client-java',
'datadog-api-client-python',
'datadog-api-client-ruby',
'datadog-api-client-typescript'
'datadog-api-client-typescript',
'integrations-core'
]
const versions = await Promise.all(clients.map(async (repo) => {
const releases = await github.rest.repos.listReleases({
Expand All @@ -35,28 +38,28 @@ jobs:
}))
console.log(versions)
return JSON.stringify(versions)
- uses: actions/checkout@v3
- name: Write version
run: |-
echo '${{steps.set-versions.outputs.result}}' | jq > ./data/sdk_versions.json
git add ./data/sdk_versions.json
git config user.name packages
git config user.email [email protected]
git add .
git commit -m "Bump SDK"
git push -f origin HEAD:refs/heads/sdk/versions
- uses: actions/github-script@v6
name: Propose change with latest versions
with:
github-token: ${{secrets.GITHUB_TOKEN}}
result-encoding: string
script: |
await github.rest.pulls.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: "[SDK] new versions are available",
body: "SSID",
head: "sdk/versions",
base: "master",
maintainer_can_modify: true
})
# - uses: actions/checkout@v3
# - name: Write version
# run: |-
# echo '${{steps.set-versions.outputs.result}}' | jq > ./data/sdk_versions.json
# git add ./data/sdk_versions.json
# git config user.name packages
# git config user.email [email protected]
# git add .
# git commit -m "Bump SDK"
# git push -f origin HEAD:refs/heads/sdk/versions
# - uses: actions/github-script@v6
# name: Propose change with latest versions
# with:
# github-token: ${{secrets.GITHUB_TOKEN}}
# result-encoding: string
# script: |
# await github.rest.pulls.create({
# owner: context.repo.owner,
# repo: context.repo.repo,
# title: "[SDK] new versions are available",
# body: "SSID",
# head: "sdk/versions",
# base: "master",
# maintainer_can_modify: true
# })

0 comments on commit 750e750

Please sign in to comment.