Skip to content

Commit cd085f5

Browse files
committed
[puppetsync] Clean up for linters
Clean up files distributed by puppetsync for various linters. Also fix a quoting issue in create-github-release action.
1 parent 52f79a0 commit cd085f5

4 files changed

Lines changed: 17 additions & 16 deletions

File tree

.github/workflows/add_new_issue_to_triage_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Add new issues to triage project
33

4-
on:
4+
'on':
55
issues:
66
types:
77
- opened

.github/workflows/release_rpms.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
---
3232
name: 'RELENG: Build + attach RPMs to GitHub Release'
3333

34-
on:
34+
'on':
3535
workflow_dispatch:
3636
inputs:
3737
release_tag:
@@ -71,10 +71,10 @@ on:
7171
description: "Dry run (Test-build RPMs)"
7272
required: false
7373
default: 'no'
74-
#verbose:
75-
# description: 'Verbose RPM builds when "yes"'
76-
# required: false
77-
# default: 'no'
74+
# verbose:
75+
# description: 'Verbose RPM builds when "yes"'
76+
# required: false
77+
# default: 'no'
7878
rebuild_number:
7979
description: 'If this is an RPM rebuild, put the number of the rebuild here'
8080
required: false
@@ -255,13 +255,13 @@ jobs:
255255
simp_core_ref_for_building_rpms: ${{ secrets.SIMP_CORE_REF_FOR_BUILDING_RPMS }}
256256
simp_builder_docker_image: 'docker.io/simpproject/simp_build_${{ github.event.inputs.build_container_os }}:latest'
257257
path_to_build: "${{ (github.event.inputs.path_to_build != null && format('{0}/{1}', github.workspace, github.event.inputs.path_to_build)) || github.workspace }}"
258-
verbose: 'no' #${{ github.event.inputs.verbose }}
258+
verbose: 'no' # ${{ github.event.inputs.verbose }}
259259
260260
- name: "Wipe all previous assets from GitHub Release (when clean == 'yes')"
261261
if: ${{ github.event.inputs.clean == 'yes' && github.event.inputs.dry_run != 'yes' }}
262262
uses: actions/github-script@v6
263263
env:
264-
release_id: ${{ steps.release-api.outputs.id }}
264+
release_id: ${{ steps.release-api.outputs.id }}
265265
with:
266266
github-token: ${{ github.event.inputs.target_repo_token || secrets.GITHUB_TOKEN }}
267267
script: |
@@ -282,7 +282,7 @@ jobs:
282282
env:
283283
rpm_file_paths: ${{ steps.build-and-sign-rpm.outputs.rpm_file_paths }}
284284
rpm_gpg_file: ${{ steps.build-and-sign-rpm.outputs.rpm_gpg_file }}
285-
release_id: ${{ steps.release-api.outputs.id }}
285+
release_id: ${{ steps.release-api.outputs.id }}
286286
clobber: ${{ github.event.inputs.clobber }}
287287
clean: ${{ github.event.inputs.clean }}
288288
dry_run: ${{ github.event.inputs.dry_run }}

.github/workflows/tag_deploy_rubygem__github-rpms.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
---
4141
name: 'Tag: Release to GitHub w/RPMs'
4242

43-
on:
43+
'on':
4444
push:
4545
tags:
4646
# NOTE: These filter patterns aren't actually regexes:
@@ -49,7 +49,7 @@ on:
4949
- '[0-9]+\.[0-9]+\.[0-9]+\-[a-z]+[0-9]+'
5050

5151
env:
52-
PUPPET_VERSION: '~> 7'
52+
PUPPET_VERSION: '~> 8'
5353
LOCAL_WORKFLOW_CONFIG_FILE: .github/workflows.local.json
5454

5555
jobs:
@@ -109,7 +109,8 @@ jobs:
109109
110110
create-github-release:
111111
name: Deploy GitHub Release
112-
needs: [ releng-checks ]
112+
needs:
113+
- releng-checks
113114
if: github.repository_owner == 'simp'
114115
runs-on: ubuntu-latest
115116
outputs:
@@ -162,13 +163,14 @@ jobs:
162163
run: |
163164
echo "${RELEASE_MESSAGE}" > /tmp/.commit-msg.txt
164165
args=(-F /tmp/.commit-msg.txt)
165-
[[ ${{ steps.tag-check.outputs.prerelease }} == yes ]] && args+=(--prerelease)
166+
[[ "${{ steps.tag-check.outputs.prerelease }}" == yes ]] && args+=(--prerelease)
166167
167168
gh release create ${args[@]} "$TARGET_TAG"
168169
169170
build-and-attach-rpms:
170171
name: Trigger RPM release
171-
needs: [ create-github-release ]
172+
needs:
173+
- create-github-release
172174
if: github.repository_owner == 'simp'
173175
runs-on: ubuntu-latest
174176
env:

.github/workflows/validate_tokens_asset.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
---
2121
name: 'Manual: Validate API tokens'
2222

23-
on:
23+
'on':
2424
- workflow_dispatch
2525

2626
jobs:
@@ -52,4 +52,3 @@ jobs:
5252
echo "::debug ::${scopes}"
5353
exit 1
5454
fi
55-

0 commit comments

Comments
 (0)