Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add changelog generator #129

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/change_log.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Generate Changelog

on:
release:
types: [published, edited]
workflow_dispatch:
inputs:
version:
description: dummy
default: dummy

defaults:
run:
shell: bash

jobs:
gen-changelog:
runs-on: ubuntu-latest
environment: genlog_gen_token_2
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: install pkgs
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt update && sudo apt install -y zip grep sudo ruby rubygems git ssh ruby-dev gcc make
sudo $(which gem) install specific_install

- name: install github-changelog-generator
run: |
git clone https://github.com/github-changelog-generator/github-changelog-generator -b v1.16.4
cd github-changelog-generator/
sudo $(which gem) build github_changelog_generator.gemspec
sudo $(which gem) install -N github_changelog_generator-1.16.4.gem

- name: run github-changelog-generator
env:
CHANGELOG_GEN_TOKEN: ${{ secrets.CHANGELOG_GEN_TOKEN }}

# --exclude-tags "$(git tag -l 'trifajni*'| tr '\n' ',')" \

run: |
pwd
$(which ruby) $(which github_changelog_generator) -u Zoxcore -p trifa_material \
--exclude-tags "$(git tag -l 'trifajni*'| tr '\n' ',')nightly" \
--token "$CHANGELOG_GEN_TOKEN"

- name: chmod
run: |
sudo chmod a+r /home/runner/work/trifa_material/trifa_material/CHANGELOG.md
ls -rattlh

- name: upload Changelog file
uses: actions/upload-artifact@v3
with:
name: Changelog
path: |
/home/runner/work/trifa_material/trifa_material/CHANGELOG.md
Loading