Skip to content

Commit

Permalink
fix: multiline output (#65)
Browse files Browse the repository at this point in the history
fixes #64
  • Loading branch information
DariuszPorowski authored May 18, 2023
1 parent ce25b14 commit 4410bd5
Show file tree
Hide file tree
Showing 9 changed files with 338 additions and 97 deletions.
16 changes: 14 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
# Configuration for github-actions
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
commit-message:
prefix: "[github-actions] "
prefix: "⬆️ github-actions"
include: scope
labels:
- dependencies

# Configuration for docker
- package-ecosystem: docker
directory: /
schedule:
interval: daily
commit-message:
prefix: "[docker] "
prefix: "⬆️ docker"
include: scope
labels:
- dependencies
79 changes: 79 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---
name-template: v$RESOLVED_VERSION
tag-template: v$RESOLVED_VERSION
footer: |
See details of all code changes: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION since previous release.
template: |
## 🔄️ What's Changed
$CHANGES
## 👥 Contributors
$CONTRIBUTORS
categories:
- title: 💥 Breaking
labels:
- major
- breaking
- title: 🚀 Features
labels:
- minor
- feature
- enhancement
- title: 🐛 Bug Fixes
labels:
- fix
- bugfix
- bug
- title: 🧰 Maintenance
labels:
- maintenance
- chore
- title: 📚 Documentation
labels:
- doc
- docs
- documentation
- title: Other changes
label: patch
- title: ⬆️ Dependencies
labels:
- dependencies
- deps
collapse-after: 3
- title: 🚨 Security
label: security
collapse-after: 3
exclude-labels:
- skip-changelog
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- major
- breaking
minor:
labels:
- minor
- feature
- enhancement
patch:
labels:
- patch
- fix
- bugfix
- bug
- maintenance
- chore
- doc
- docs
- documentation
- deps
- dependencies
- security
default: patch
# TODO autolabeler https://github.com/release-drafter/release-drafter/#autolabeler
6 changes: 4 additions & 2 deletions .github/workflows/dogfood.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request, pull_request_target, workflow_dispatch]

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

jobs:
Expand Down Expand Up @@ -46,9 +46,11 @@ jobs:
run: |
echo "exitcode: ${{ steps.gitleaks.outputs.exitcode }}"
echo "result: ${{ steps.gitleaks.outputs.result }}"
echo "output: ${{ steps.gitleaks.outputs.output }}"
echo "command: ${{ steps.gitleaks.outputs.command }}"
echo "report: ${{ steps.gitleaks.outputs.report }}"
echo "output: ${GITLEAKS_OUTPUT}"
env:
GITLEAKS_OUTPUT: ${{ steps.gitleaks.outputs.output }}

- name: Upload SARIF report
if: ${{ steps.gitleaks.outputs.exitcode == 1 }}
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/release-draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Draft Release

on:
push:
branches:
- main
workflow_dispatch:

jobs:
draft-release:
name: Draft Release
permissions:
contents: write
pull-requests: read
runs-on: ubuntu-latest
steps:
- name: 📝 Run Release Drafter
uses: release-drafter/release-drafter@v5
id: release-drafter
with:
prerelease: true
env:
GITHUB_TOKEN: ${{ github.token }}

- name: ✍️ Post Summary
run: |
echo "${RELEASE_URL}"
echo "${RELEASE_URL}" >> "$GITHUB_STEP_SUMMARY"
env:
RELEASE_URL: ${{ steps.release-drafter.outputs.html_url }}
37 changes: 37 additions & 0 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Publish Release

on:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
release:
types:
- published
workflow_dispatch:
inputs:
tag_name:
description: Tag name that the major tag will point to
required: true

env:
TAG_NAME: ${{ github.event.inputs.tag_name || github.event.release.tag_name }}

jobs:
gh-release:
name: Publish Release
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: 🥇 Update release to the latest
id: gh-release
uses: softprops/action-gh-release@v1
with:
prerelease: false
token: ${{ github.token }}

- name: 🥇 Update the major tag to include the ${{ env.TAG_NAME }} changes
id: major-tag
uses: actions/[email protected]
with:
source-tag: ${{ env.TAG_NAME }}
token: ${{ github.token }}
Loading

0 comments on commit 4410bd5

Please sign in to comment.