Skip to content

Commit

Permalink
chore: add experimental release pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
tatomyr committed Jan 21, 2025
1 parent 648fb6c commit 72222c7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/experimental-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Experimental PR Creation

on:
pull_request:
types: [labeled]

jobs:
create-experimental-pr:
if: github.event.label.name == 'experimental'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout the PR branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Create PR to experimental
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_TITLE: ${{ github.event.pull_request.title }}
SOURCE_BRANCH: ${{ github.event.pull_request.head.ref }}
run: |
gh pr create \
--base experimental \
--head "$SOURCE_BRANCH" \
--title "🧪 $PR_TITLE" \
--body "This PR was automatically created from #$PR_NUMBER when the 'experimental' label was added.
Original PR: #$PR_NUMBER" \
--label experimental
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"OpenAPI linter",
"Swagger linter",
"AsyncAPI linter",
"Arazzo linter",
"oas"
],
"contributors": [
Expand Down

0 comments on commit 72222c7

Please sign in to comment.