Skip to content
Open
Show file tree
Hide file tree
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
28 changes: 28 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2
# doc and options for this file :
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

updates:
# keep automatic actions up-to-date with the last version
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week on Saturday
interval: "weekly"
day: "saturday"
reviewers:
- pifou25
# Branch to create pull requests against
target-branch: "master"

- package-ecosystem: "docker"
directory: "/docker/"
schedule:
# Check for updates to GitHub Actions every week on Saturday
interval: "weekly"
day: "saturday"
reviewers:
- pifou25
# Branch to create pull requests against
target-branch: "master"
54 changes: 54 additions & 0 deletions .github/workflows/semantic_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# this step for master only
name: Semantic Release

on:
push:
branches: [ master, develop, 'feat/semver' ]
# this is to manually trigger the worklow
workflow_dispatch:
inputs:
logLevel:
description: 'Reason'
default: 'Manual launch'

jobs:
# one single job
release:
name: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

# https://github.com/marketplace/actions/setup-node-js-environment
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: semantic
# should use dry-run to get the released version
run: |
# check if pull request is opened or reopened
echo "Pull request ${{ github.event_name }} ${{ github.event.type }}\n${{ github.event.type }}"
# https://github.com/actions/toolkit/blob/main/packages/github/src/context.ts
if [[ ${{ github.event_name }} == "pull_request" ]]; then
ARG=""
else
ARG="--dry-run"
fi
npm install
npx --package=@semantic-release/changelog@6 \
--package=@semantic-release/exec@6 \
--package=@semantic-release/git@10 \
semantic-release $ARG --debug
env:
GITHUB_TOKEN: ${{ secrets.PAT }}

- name: Display Github summary
if: ${{ env.NEXT_RELEASE_VERSION != '' }}
run: |
echo "New release : ${{ env.NEXT_RELEASE_VERSION }}" >> $GITHUB_STEP_SUMMARY

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Highly customizable (typed) entity generator from database. It can generate enti
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat)](https://github.com/phpstan/phpstan)
[![Total Downloads](https://poser.pugx.org/dodo-it/entity-generator/downloads)](https://packagist.org/packages/dodo-it/entity-generator)
[![License](https://poser.pugx.org/dodo-it/entity-generator/license)](https://packagist.org/packages/dodo-it/entity-generator)
[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
![Docker Pulls](https://img.shields.io/docker/pulls/pifou25/entity-generator)


## Installation

Expand Down
Loading
Loading