Skip to content

[Profiler] Allow tests for .NET Framework #21277

[Profiler] Allow tests for .NET Framework

[Profiler] Allow tests for .NET Framework #21277

name: Auto bump test package versions
on:
schedule:
- cron: '0 0 * * 0' # Every Sunday at midnight
pull_request_target:
branches: [master, main]
workflow_dispatch:
jobs:
bump_package_versions:
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || startsWith(github.event.pull_request.head.ref, 'dependabot/nuget/tracer/dependabot/') == true
runs-on: windows-latest
permissions:
actions: read # read secrets
contents: write # Creates a branch
pull-requests: write # Creates a PR
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
steps:
- name: Support longpaths
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.base.sha }}
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.100'
- name: "Regenerating package versions"
run: .\tracer\build.ps1 GeneratePackageVersions
- name: Create Pull Request
id: pr
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: "bot/test-package-versions-bump"
commit-message: "[Test Package Versions Bump]"
delete-branch: true
base: master
title: "[Test Package Versions Bump] Updating package versions "
milestone: "${{steps.rename.outputs.milestone}}"
reviewers: "DataDog/apm-dotnet"
body: |
Updates the package versions for integration tests.
- name: Send Slack notification about generating failure
if: failure()
uses: slackapi/[email protected]
with:
# This data can be any valid JSON from a previous step in the GitHub Action
payload: |
{
"github_url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBOOK_URL_GENERATEPACKAGEVERSIONS }}