Skip to content

Commit

Permalink
use peter-evans/create-pull-request@v7
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Dec 14, 2024
1 parent fd0536d commit 6969c2c
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/update-otel-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,10 @@ jobs:
- name: Update to latest opentelemetry-collector release
run: cd opentelemetry-collector-contrib && make update-otel
- name: Create pull request against main
env:
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
run: |
cd opentelemetry-collector-contrib
message="[chore] Update to latest opentelemetry-collector"
body="Update to latest opentelemetry-collector release."
branch="opentelemetrybot/update-otel"
git checkout -b $branch
git commit -a -m "$message"
git push --set-upstream origin $branch
url=$(gh pr create --title "$message" \
--body "$body" \
--base main)
pull_request_number=${url//*\//}
git push
uses: peter-evans/create-pull-request@v7
with:
branch: opentelemetrybot/update-otel
token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
commit-message: Update to latest opentelemetry-collector release.
title: [chore] Update to latest opentelemetry-collector

0 comments on commit 6969c2c

Please sign in to comment.