diff --git a/.github/workflows/icbundle.yml b/.github/workflows/icbundle.yml new file mode 100644 index 000000000..4eef1b513 --- /dev/null +++ b/.github/workflows/icbundle.yml @@ -0,0 +1,35 @@ +name: Integration Candidate Bundle Generation + +# Generate Integration Candidate branch for this repository. + +on: + workflow_dispatch: + inputs: + pr_nums: + description: 'The pull request numbers to include. Comma separated' + required: true + type: string + +jobs: + generate-ic-bundle: + runs-on: ubuntu-latest + steps: + - name: Checkout IC Branch + uses: actions/checkout@v3 + with: + fetch-depth: '0' + ref: main + - name: Rebase IC Branch + run: | + git config user.name "GitHub Actions Bot" + git config user.email "<>" + git pull + git checkout integration-candidate + git rebase main + - name: Merge each PR + run: | + prs=$(echo ${{ inputs.pr_nums }} | tr "," "\n") + for pr in $prs + do + git merge origin/pull/$pr/head --no-ff -m "Merge pull request #$pr from branch\n\nmessage" + done diff --git a/test1 b/test1 new file mode 100644 index 000000000..85c4b74be --- /dev/null +++ b/test1 @@ -0,0 +1 @@ +qwertyuiop