File tree Expand file tree Collapse file tree 5 files changed +71
-51
lines changed
Expand file tree Collapse file tree 5 files changed +71
-51
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 1- ---
2- name : Mend Monitor
1+ name : " mend "
2+
33on :
4- push :
4+ pull_request :
55 branches :
6- - main
6+ - " 1.9.x"
7+ schedule :
8+ - cron : " 0 0 * * *"
9+ workflow_dispatch :
10+
711jobs :
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"
Original file line number Diff line number Diff line change 1- name : Tag and release
1+ name : " Release "
22
33on :
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
811jobs :
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"
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments