Create or Update Release PR #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create or Update Release PR | |
on: | |
workflow_dispatch: | |
inputs: | |
release_type: | |
type: choice | |
description: Release type | |
options: | |
- patch | |
- minor | |
release_scope: | |
type: choice | |
description: Release Scope | |
options: | |
- experimental | |
- sdk | |
- semconv | |
- all | |
jobs: | |
create-or-update-release-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fork | |
run: gh repo fork pichlermarc-sample-organization/test-release-pr | |
env: | |
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: marcpichler/test-release-pr #later opentelemetrybot/opentelemetry-js | |
ref: main | |
token: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} | |
- name: Sync with upstream | |
run: | | |
git remote show origin | |
git remote add upstream https://github.com/pichlermarc-sample-organization/test-release-pr.git | |
git fetch upstream | |
git reset --hard upstream/main | |
git push origin main --force | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
cache-dependency-path: package-lock.json | |
node-version: 22 | |
- run: npm install -g npm@latest | |
- run: npm ci | |
- name: Create/Update Release PR | |
run: | | |
git config user.name opentelemetrybot | |
git config user.email [email protected] | |
npm run github:create_or_update_release_pr | |
env: | |
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} | |
RELEASE_SCOPE: ${{ github.event.inputs.release_scope }} | |
RELEASE_KIND: ${{ github.event.inputs.release_scope }}:${{ github.event.inputs.release_type }} | |
RELEASE_PR_REMOTE: origin | |
RELEASE_PR_OWNER: marcpichler # opentelemetrybot |