Skip to content

Commit fb1a18f

Browse files
committed
(maint): Add release preparation and release actions for 1.9.x
1 parent a5bb802 commit fb1a18f

File tree

5 files changed

+71
-51
lines changed

5 files changed

+71
-51
lines changed

.github/workflows/checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
# for this check we need all the gems so we skip the `bundle config set without`
4646
gem update --system --silent --no-document
4747
bundle install --jobs 4 --retry 3
48-
- run: bundle exec rake license_finder
48+
- run: bundle exec rake license_finder

.github/workflows/labeller.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Labeller
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- labeled
8+
- unlabeled
9+
pull_request_target:
10+
types:
11+
- opened
12+
- labeled
13+
- unlabeled
14+
15+
jobs:
16+
label:
17+
runs-on: ubuntu-latest
18+
steps:
19+
20+
- uses: puppetlabs/[email protected]
21+
name: Label issues or pull requests
22+
with:
23+
label_name: community
24+
label_color: '5319e7'
25+
org_membership: puppetlabs
26+
fail_if_member: 'true'
27+
token: ${{ secrets.IAC_COMMUNITY_LABELER }}

.github/workflows/mend.yaml

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,15 @@
1-
---
2-
name: Mend Monitor
1+
name: "mend"
2+
33
on:
4-
push:
4+
pull_request:
55
branches:
6-
- main
6+
- "1.9.x"
7+
schedule:
8+
- cron: "0 0 * * *"
9+
workflow_dispatch:
10+
711
jobs:
8-
mend_monitor:
9-
if: ${{ github.repository_owner == 'puppetlabs' }}
10-
runs-on: ubuntu-latest
11-
name: Mend Monitor
12-
steps:
13-
- name: Checkout current PR
14-
uses: actions/checkout@v3
15-
- name: Setup Ruby
16-
uses: ruby/setup-ruby@v1
17-
with:
18-
ruby-version: 2.7
19-
- name: Create lock
20-
run: bundle lock
21-
- uses: actions/setup-java@v3
22-
with:
23-
distribution: 'temurin'
24-
java-version: '17'
25-
- name: Download Mend
26-
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
27-
- name: Run Mend
28-
run: java -jar wss-unified-agent.jar
29-
env:
30-
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
31-
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
32-
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
33-
WS_PRODUCTNAME: Puppet Agent
34-
WS_PROJECTNAME: ${{ github.event.repository.name }}
12+
13+
mend:
14+
uses: "puppetlabs/cat-github-actions/.github/workflows/tooling_mend_ruby.yml@main"
15+
secrets: "inherit"

.github/workflows/release.yaml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
1-
name: Tag and release
1+
name: "Release"
22

33
on:
4-
push:
5-
tags:
6-
- '*'
4+
workflow_dispatch:
5+
inputs:
6+
target:
7+
description: "The target for the release. This can be a commit sha or a branch."
8+
required: false
9+
default: "1.9.x"
710

811
jobs:
912
release:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v3
13-
with:
14-
fetch-depth: '0'
15-
- name: Build gem
16-
uses: scarhand/actions-ruby@master
17-
with:
18-
args: build *.gemspec
19-
- name: Publish gem
20-
uses: scarhand/actions-ruby@master
21-
env:
22-
RUBYGEMS_AUTH_TOKEN: ${{ secrets.RUBYGEMS_JENKINS_GH_ACTIONS_PUSH }}
23-
with:
24-
args: push *.gem
13+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main"
14+
with:
15+
target: "${{ github.event.inputs.target }}"
16+
secrets: "inherit"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Release Prep"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
target:
7+
description: "The target for the release. This can be a commit sha or a branch."
8+
required: false
9+
default: "1.9.x"
10+
version:
11+
description: "Version of gem to be released."
12+
required: true
13+
14+
jobs:
15+
release_prep:
16+
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main"
17+
with:
18+
target: "${{ github.event.inputs.target }}"
19+
version: "${{ github.event.inputs.version }}"
20+
secrets: "inherit"

0 commit comments

Comments
 (0)