From 4f89b77af40bd97896c5e4a3ba6123e190225439 Mon Sep 17 00:00:00 2001 From: Gavin Patton Date: Tue, 29 Nov 2022 14:06:36 +0000 Subject: [PATCH] (MAINT) Add labeller and release-prep actions Adding missing github actions --- .github/workflows/labeller.yml | 22 ++++++++++++++++++++++ .github/workflows/release_prep.yml | 16 ++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/labeller.yml create mode 100644 .github/workflows/release_prep.yml diff --git a/.github/workflows/labeller.yml b/.github/workflows/labeller.yml new file mode 100644 index 0000000..5434d3f --- /dev/null +++ b/.github/workflows/labeller.yml @@ -0,0 +1,22 @@ +name: community-labeller + +on: + issues: + types: + - opened + pull_request_target: + types: + - opened + +jobs: + label: + runs-on: ubuntu-latest + steps: + + - uses: puppetlabs/community-labeller@v0 + name: Label issues or pull requests + with: + label_name: community + label_color: '5319e7' + org_membership: puppetlabs + token: ${{ secrets.IAC_COMMUNITY_LABELER }} diff --git a/.github/workflows/release_prep.yml b/.github/workflows/release_prep.yml new file mode 100644 index 0000000..4d56476 --- /dev/null +++ b/.github/workflows/release_prep.yml @@ -0,0 +1,16 @@ +name: "Release Prep" + +on: + workflow_dispatch: + inputs: + target: + description: "The target for the release. This can be a commit sha or a branch." + required: false + default: "main" + +jobs: + release_prep: + uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main" + with: + target: "${{ github.event.inputs.target }}" + secrets: "inherit"