Skip to content

Commit

Permalink
try gh pr instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgopack4 committed Sep 20, 2024
1 parent 4724679 commit 0c0e363
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/update-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ jobs:
git add Makefile cmd/builder/builder-config.yaml distributions/otelcol/manifest.yaml distributions/otelcol-contrib/manifest.yaml distributions/otelcol-k8s/manifest.yaml
git commit -m "Update version from ${{ github.event.inputs.old_version }} to ${{ github.event.inputs.new_version }}"
git push --set-upstream origin update-version-${{ github.event.inputs.new_version }}
git checkout main
gh pr create --title "[chore] Prepare release ${{ github.event.inputs.new_version }}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_PAT }}
branch: update-version-${{ github.event.inputs.new_version }}
title: "Update version from ${{ github.event.inputs.old_version }} to ${{ github.event.inputs.new_version }}"
body: "This PR updates the version from ${{ github.event.inputs.old_version }} to ${{ github.event.inputs.new_version }} in the following files:\n- Makefile\n- cmd/builder/builder-config.yaml\n- distributions/otelcol/manifest.yaml\n- distributions/otelcol-contrib/manifest.yaml\n- distributions/otelcol-k8s/manifest.yaml"
# labels: "version update"
# - name: Create Pull Request
# uses: peter-evans/create-pull-request@v3
# with:
# token: ${{ secrets.GH_PAT }}
# branch: update-version-${{ github.event.inputs.new_version }}
# title: "Update version from ${{ github.event.inputs.old_version }} to ${{ github.event.inputs.new_version }}"
# body: "This PR updates the version from ${{ github.event.inputs.old_version }} to ${{ github.event.inputs.new_version }} in the following files:\n- Makefile\n- cmd/builder/builder-config.yaml\n- distributions/otelcol/manifest.yaml\n- distributions/otelcol-contrib/manifest.yaml\n- distributions/otelcol-k8s/manifest.yaml"
# # labels: "version update"

0 comments on commit 0c0e363

Please sign in to comment.