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

chore: update version testing #588

Merged
merged 3 commits into from
Nov 29, 2023
Merged
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
16 changes: 15 additions & 1 deletion .github/workflows/version-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
echo "EOF" >> $GITHUB_ENV
- name: Create Pull Request
# WARNING: the create pull request action must be the last action in the job, it changes the current branch
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v5
with:
token: "${{ secrets.GITHUB_TOKEN }}"
title: ${{steps.branch_name.outputs.branch_name}}
Expand All @@ -93,6 +93,20 @@ jobs:
labels: version-testing, automerge
reviewers: GuyMoses,saartochner,shanishiri
# WARNING: the create pull request action must be the last action in the job, it changes the current branch
- run: | # post update to #microservices slack channel
slack_channel_webhook="${{secrets.VERSION_TESTING_SLACK_CHANNEL_WEBHOOK}}"
if [[ -n "$slack_channel_webhook" ]]; then
branch_name="${{steps.branch_name.outputs.branch_name}}"
text_property="New version testing PR has been opened:
\nRepository: opentelemetry-python-distro
\nBranch name: ${branch_name}
\n
\nPlease review, approve and merge the PR *only* if the results are desirable."
echo \{ \"text\": "$text_property" \} | \
curl -X POST "${slack_channel_webhook}" --header "Content-Type: application/json" -v --data-binary @-
else
echo "Slack channel webhook is not set, skipping posting to slack"
fi

delete-old-version-testing-branches:
runs-on: ubuntu-latest
Expand Down
Loading