mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-11 02:20:20 +08:00
commit
b7f3b0d560
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -9,6 +9,7 @@ on:
|
||||
branches: [ "main" , "develop" ]
|
||||
paths-ignore:
|
||||
- "README.md"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -38,12 +39,9 @@ jobs:
|
||||
- name: Test
|
||||
run: dotnet test -c Release --no-restore
|
||||
|
||||
- name: Update Release Drafter
|
||||
- name: Call Update Release Drafter
|
||||
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||
id: last_release
|
||||
uses: release-drafter/release-drafter@v5
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
uses: ./.github/workflows/reusable-release-drafter.yml
|
||||
|
||||
##ref: https://docs.docker.com/language/golang/configure-ci-cd/
|
||||
##ref: https://event-driven.io/en/how_to_buid_and_push_docker_image_with_github_actions
|
||||
|
||||
28
.github/workflows/reusable-release-drafter.yml
vendored
Normal file
28
.github/workflows/reusable-release-drafter.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
name: Reusable Release Drafter
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" , "develop" ]
|
||||
paths-ignore:
|
||||
- "README.md"
|
||||
pull_request:
|
||||
branches: [ "main" , "develop" ]
|
||||
paths-ignore:
|
||||
- "README.md"
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Update Release Drafter
|
||||
if: ${{ github.ref == 'refs/heads/main'}}
|
||||
id: last_release
|
||||
uses: release-drafter/release-drafter@v5
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user