From e05606ea5bd51041e1ee69564c3f6e3791ea6810 Mon Sep 17 00:00:00 2001 From: thadchais Date: Tue, 24 Sep 2024 16:23:37 +0700 Subject: [PATCH] feat: add semetic release and PR --- .../repository-semantic-release.yaml | 19 +++++++++++++++++++ .github/workflows/semantic-pr.yaml | 12 ++++-------- 2 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/repository-semantic-release.yaml diff --git a/.github/workflows/repository-semantic-release.yaml b/.github/workflows/repository-semantic-release.yaml new file mode 100644 index 0000000..b6f0678 --- /dev/null +++ b/.github/workflows/repository-semantic-release.yaml @@ -0,0 +1,19 @@ +# yamllint disable rule:line-length +--- +permissions: + contents: write + pull-requests: write + +name: "repository-semantic-release" + +on: # yamllint disable-line rule:truthy + push: + +jobs: + repository-semantic-release: + name: repository-semantic-release + permissions: + contents: write + pull-requests: write + uses: honestbank/workflows/.github/workflows/shared-semantic-release.yaml@main + secrets: inherit diff --git a/.github/workflows/semantic-pr.yaml b/.github/workflows/semantic-pr.yaml index 3627556..afddfdd 100644 --- a/.github/workflows/semantic-pr.yaml +++ b/.github/workflows/semantic-pr.yaml @@ -18,11 +18,7 @@ on: - synchronize jobs: - public-semantic-pr: - name: public-semantic-pr - runs-on: ubuntu-latest - steps: - - uses: amannn/action-semantic-pull-request@v4 - name: Semantic Pull Request - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + repository-semantic-pr: + name: repository-semantic-pr + uses: honestbank/workflows/.github/workflows/shared-semantic-pr.yaml@main + secrets: inherit