feature: migrate to self host actions

This commit is contained in:
RouxAntoine 2024-09-08 22:12:08 +02:00
parent d811d16d24
commit bad8fa89a3
Signed by: antoine
GPG Key ID: 098FB66FC0475E70

View File

@ -28,7 +28,7 @@ on:
jobs:
build:
if: "contains(github.event.head_commit.message, 'CI') != true"
if: "contains(github.event.head_commit.message, vars.SKIP_CI_PREFIX) != true"
steps:
- uses: action/checkout@<latest_tag>
with:
@ -37,15 +37,15 @@ jobs:
# ... do some CI habitual stuff
- uses: RouxAntoine/auto-changie@<latest_tag>
- uses: https://antoine-roux.tk/projects/actions/auto-changie@<latest_tag>
- name: Push changelog
uses: stefanzweifel/git-auto-commit-action@<latest_tag>
with:
commit_message: "CI: Push updated changelog"
commit_message: "${{ vars.SKIP_CI_PREFIX }} Push updated changelog"
```
This pipeline clone code update changelog with auto-changie and push it to main thanks to [git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action).
> Notice the use of `fetch-depth: 0` should be set.
> Indeed without this not all commit are retrieve and auto-changie fail to find all commit updated since previous run.
> Indeed without this not all commit are retrieve and auto-changie fail to find all commit updated since previous run.