mirror of
https://github.com/creyD/changelog_action.git
synced 2026-04-12 12:10:30 +02:00
Added basic functionality
This commit is contained in:
19
action.yml
Normal file
19
action.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Changelog Action
|
||||
description: Automatically creates a changelog for Pull Requests
|
||||
|
||||
author: Conrad Großer <grosserconrad@gmail.com>
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Prettify code!
|
||||
shell: bash
|
||||
run: >-
|
||||
${{ github.action_path }}/entrypoint.sh
|
||||
env:
|
||||
INPUT_HEAD_REF: ${{ github.head_ref }}
|
||||
INPUT_REF: ${{ github.ref }}
|
||||
|
||||
branding:
|
||||
icon: "activity"
|
||||
color: "green"
|
||||
6
entrypoint.sh
Normal file
6
entrypoint.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
# e is for exiting the script automatically if a command fails, u is for exiting if a variable is not set
|
||||
# x would be for showing the commands before they are executed
|
||||
set -eux
|
||||
|
||||
git log --oneline --decorate $INPUT_HEAD_REF..$INPUT_REF --format=%B -n 1
|
||||
Reference in New Issue
Block a user