diff --git a/.github/release-please.yml b/.github/release-please.yml new file mode 100644 index 0000000..be659ab --- /dev/null +++ b/.github/release-please.yml @@ -0,0 +1,6 @@ +bumpMinorPreMajor: true +handleGHRelease: true +manifest: true +monorepoTags: true +primaryBranch: main +releaseType: ruby-yoshi diff --git a/.github/workflows/release-please-label.yml b/.github/workflows/release-please-label.yml deleted file mode 100644 index 373ecc3..0000000 --- a/.github/workflows/release-please-label.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Label Release PRs -on: - pull_request_target: - branches: - - main - types: - - opened -jobs: - release-please-label: - if: "${{ github.event.sender.login == 'yoshi-code-bot' && startsWith(github.event.pull_request.title, 'chore(main): release ') }}" - runs-on: ubuntu-latest - steps: - - name: ReleaseLabel - uses: actions/github-script@v7 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - script: | - core.info('Labeling release'); - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['autorelease: pending'] - }); - core.info('Labeled'); diff --git a/.github/workflows/release-please-owlbot-postprocessor.yml b/.github/workflows/release-please-owlbot-postprocessor.yml deleted file mode 100644 index b142b46..0000000 --- a/.github/workflows/release-please-owlbot-postprocessor.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Release-Please OwlBot Postprocessor -on: - push: - branches: [main] - paths: 'owlbot-postprocessor/**' - workflow_dispatch: - inputs: - version: - description: "Specific version" - required: false - args: - description: "Extra command line arguments." - required: false - -jobs: - release-please: - if: ${{ github.repository == 'googleapis/ruby-common-tools' }} - runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }} - RELEASE_PLEASE_DISABLE: ${{ secrets.RELEASE_PLEASE_DISABLE }} - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - name: Install Ruby 3.0 - uses: ruby/setup-ruby@v1 - with: - ruby-version: "3.0" - - name: Install NodeJS 16.x - uses: actions/setup-node@v4 - with: - node-version: "16.x" - - name: Install tools - run: "gem install --no-document toys" - - name: execute - run: | - toys release manifest -v \ - --fork --skip-labeling \ - --github-event-name=${{ github.event_name }} \ - ${{ github.event.inputs.args }} \ - owlbot-postprocessor:${{ github.event.inputs.version }} diff --git a/.github/workflows/release-tag-owlbot-postprocessor.yml b/.github/workflows/release-tag-owlbot-postprocessor.yml deleted file mode 100644 index 0f4f1d2..0000000 --- a/.github/workflows/release-tag-owlbot-postprocessor.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Tag OwlBot Postprocessor Release -on: - push: - branches: [main] - paths: 'owlbot-postprocessor/**' - workflow_dispatch: - -jobs: - github-release: - if: ${{ github.repository == 'googleapis/ruby-common-tools' }} - runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - RELEASE_PLEASE_DISABLE: ${{ secrets.RELEASE_PLEASE_DISABLE }} - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - name: Install NodeJS 16.x - uses: actions/setup-node@v4 - with: - node-version: "16.x" - - name: Install tools - run: "npm install release-please" - - name: Execute - shell: bash - run: | - if [ -z "$RELEASE_PLEASE_DISABLE" ]; then - npx release-please github-release \ - --repo-url=googleapis/ruby-common-tools \ - --path=owlbot-postprocessor \ - --token=$GITHUB_TOKEN - fi