Skip to content

Commit 4410bd5

Browse files
fix: multiline output (#65)
fixes #64
1 parent ce25b14 commit 4410bd5

9 files changed

+338
-97
lines changed

.github/dependabot.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
1+
# Please see the documentation for all configuration options:
2+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
14
version: 2
25
updates:
6+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
7+
# Configuration for github-actions
38
- package-ecosystem: github-actions
49
directory: /
510
schedule:
611
interval: daily
712
commit-message:
8-
prefix: "[github-actions] "
13+
prefix: "⬆️ github-actions"
14+
include: scope
15+
labels:
16+
- dependencies
917

18+
# Configuration for docker
1019
- package-ecosystem: docker
1120
directory: /
1221
schedule:
1322
interval: daily
1423
commit-message:
15-
prefix: "[docker] "
24+
prefix: "⬆️ docker"
25+
include: scope
26+
labels:
27+
- dependencies

.github/release-drafter.yml

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
name-template: v$RESOLVED_VERSION
3+
tag-template: v$RESOLVED_VERSION
4+
footer: |
5+
6+
See details of all code changes: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION since previous release.
7+
template: |
8+
## 🔄️ What's Changed
9+
10+
$CHANGES
11+
12+
## 👥 Contributors
13+
14+
$CONTRIBUTORS
15+
16+
categories:
17+
- title: 💥 Breaking
18+
labels:
19+
- major
20+
- breaking
21+
- title: 🚀 Features
22+
labels:
23+
- minor
24+
- feature
25+
- enhancement
26+
- title: 🐛 Bug Fixes
27+
labels:
28+
- fix
29+
- bugfix
30+
- bug
31+
- title: 🧰 Maintenance
32+
labels:
33+
- maintenance
34+
- chore
35+
- title: 📚 Documentation
36+
labels:
37+
- doc
38+
- docs
39+
- documentation
40+
- title: Other changes
41+
label: patch
42+
- title: ⬆️ Dependencies
43+
labels:
44+
- dependencies
45+
- deps
46+
collapse-after: 3
47+
- title: 🚨 Security
48+
label: security
49+
collapse-after: 3
50+
exclude-labels:
51+
- skip-changelog
52+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
53+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
54+
version-resolver:
55+
major:
56+
labels:
57+
- major
58+
- breaking
59+
minor:
60+
labels:
61+
- minor
62+
- feature
63+
- enhancement
64+
patch:
65+
labels:
66+
- patch
67+
- fix
68+
- bugfix
69+
- bug
70+
- maintenance
71+
- chore
72+
- doc
73+
- docs
74+
- documentation
75+
- deps
76+
- dependencies
77+
- security
78+
default: patch
79+
# TODO autolabeler https://github.com/release-drafter/release-drafter/#autolabeler

.github/workflows/dogfood.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request, pull_request_target, workflow_dispatch]
44

55
# Allow one concurrent deployment
66
concurrency:
7-
group: ${{ github.event_name }}-${{ github.base_ref }}-${{ github.head_ref || github.event.number }}
7+
group: ${{ format('{0}-{1}-{2}-{3}-{4}', github.workflow, github.event_name, github.ref, github.base_ref, github.head_ref) }}
88
cancel-in-progress: true
99

1010
jobs:
@@ -46,9 +46,11 @@ jobs:
4646
run: |
4747
echo "exitcode: ${{ steps.gitleaks.outputs.exitcode }}"
4848
echo "result: ${{ steps.gitleaks.outputs.result }}"
49-
echo "output: ${{ steps.gitleaks.outputs.output }}"
5049
echo "command: ${{ steps.gitleaks.outputs.command }}"
5150
echo "report: ${{ steps.gitleaks.outputs.report }}"
51+
echo "output: ${GITLEAKS_OUTPUT}"
52+
env:
53+
GITLEAKS_OUTPUT: ${{ steps.gitleaks.outputs.output }}
5254

5355
- name: Upload SARIF report
5456
if: ${{ steps.gitleaks.outputs.exitcode == 1 }}

.github/workflows/release-draft.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Draft Release
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
jobs:
11+
draft-release:
12+
name: Draft Release
13+
permissions:
14+
contents: write
15+
pull-requests: read
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: 📝 Run Release Drafter
19+
uses: release-drafter/release-drafter@v5
20+
id: release-drafter
21+
with:
22+
prerelease: true
23+
env:
24+
GITHUB_TOKEN: ${{ github.token }}
25+
26+
- name: ✍️ Post Summary
27+
run: |
28+
echo "${RELEASE_URL}"
29+
echo "${RELEASE_URL}" >> "$GITHUB_STEP_SUMMARY"
30+
env:
31+
RELEASE_URL: ${{ steps.release-drafter.outputs.html_url }}

.github/workflows/release-publish.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Publish Release
3+
4+
on:
5+
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
6+
release:
7+
types:
8+
- published
9+
workflow_dispatch:
10+
inputs:
11+
tag_name:
12+
description: Tag name that the major tag will point to
13+
required: true
14+
15+
env:
16+
TAG_NAME: ${{ github.event.inputs.tag_name || github.event.release.tag_name }}
17+
18+
jobs:
19+
gh-release:
20+
name: Publish Release
21+
permissions:
22+
contents: write
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: 🥇 Update release to the latest
26+
id: gh-release
27+
uses: softprops/action-gh-release@v1
28+
with:
29+
prerelease: false
30+
token: ${{ github.token }}
31+
32+
- name: 🥇 Update the major tag to include the ${{ env.TAG_NAME }} changes
33+
id: major-tag
34+
uses: actions/publish-action@v0.2.2
35+
with:
36+
source-tag: ${{ env.TAG_NAME }}
37+
token: ${{ github.token }}

0 commit comments

Comments
 (0)