From 9f174e97e9a4b808b0124f0f24a531073637a55f Mon Sep 17 00:00:00 2001 From: Andy Augustin Date: Sat, 2 Sep 2023 14:11:38 +0200 Subject: [PATCH] ci: :construction_worker: update workflow files, add release please --- .github/workflows/label.yml | 19 ------------------- .github/workflows/release_please.yml | 20 ++++++++++++++++++++ .github/workflows/stale.yml | 19 ------------------- 3 files changed, 20 insertions(+), 38 deletions(-) delete mode 100644 .github/workflows/label.yml create mode 100644 .github/workflows/release_please.yml delete mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml deleted file mode 100644 index e90b599b..00000000 --- a/.github/workflows/label.yml +++ /dev/null @@ -1,19 +0,0 @@ -# This workflow will triage pull requests and apply a label based on the -# paths that are modified in the pull request. -# -# To use this workflow, you will need to set up a .github/labeler.yml -# file with configuration. For more information, see: -# https://github.com/actions/labeler/blob/master/README.md - -name: Labeler -on: [pull_request] - -jobs: - label: - - runs-on: ubuntu-latest - - steps: - - uses: actions/labeler@v2 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/release_please.yml b/.github/workflows/release_please.yml new file mode 100644 index 00000000..67a5488e --- /dev/null +++ b/.github/workflows/release_please.yml @@ -0,0 +1,20 @@ +name: release-please + +on: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v3 + with: + release-type: simple + package-name: release-please-action diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 955be1dd..00000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Mark stale issues and pull requests - -on: - schedule: - - cron: "0 0 * * *" - -jobs: - stale: - - runs-on: ubuntu-latest - - steps: - - uses: actions/stale@v4.1.0 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'Stale issue message' - stale-pr-message: 'Stale pull request message' - stale-issue-label: 'no-issue-activity' - stale-pr-label: 'no-pr-activity'