mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-05-02 10:52:53 +08:00
ci: Update github-actions for using reusable workflow
This commit is contained in:
parent
482e26ec14
commit
dce6022cb6
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -9,6 +9,7 @@ on:
|
|||||||
branches: [ "main" , "develop" ]
|
branches: [ "main" , "develop" ]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "README.md"
|
- "README.md"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -38,12 +39,9 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: dotnet test -c Release --no-restore
|
run: dotnet test -c Release --no-restore
|
||||||
|
|
||||||
- name: Update Release Drafter
|
- name: Call Update Release Drafter
|
||||||
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
if: ${{ github.ref == 'refs/heads/main' && success() }}
|
||||||
id: last_release
|
uses: ./.github/workflows/reusable-release-drafter.yml
|
||||||
uses: release-drafter/release-drafter@v5
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
##ref: https://docs.docker.com/language/golang/configure-ci-cd/
|
##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
|
##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