From e26a3a7313602a8f0bd9a8c9a27fef353c6d9161 Mon Sep 17 00:00:00 2001 From: Diego Lagos <92735530+diegolagospagopa@users.noreply.github.com> Date: Sat, 24 Aug 2024 01:12:23 +0200 Subject: [PATCH] updated github actions --- .github/workflows/pr-title.yml | 9 +++++---- .github/workflows/release.yml | 18 ++++-------------- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index b33aff1..e4d23f2 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -10,11 +10,12 @@ on: jobs: main: name: Validate PR title - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: # Please look up the latest version from # https://github.com/amannn/action-semantic-pull-request/releases - - uses: amannn/action-semantic-pull-request@v3.4.6 + # from https://github.com/amannn/action-semantic-pull-request/commits/main + - uses: amannn/action-semantic-pull-request@01d5fd8a8ebb9aafe902c40c53f0f4744f7381eb env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -36,7 +37,7 @@ jobs: # The variables `subject` and `title` can be used within the message. subjectPatternError: | The subject "{subject}" found in the pull request title "{title}" - didn't match the configured pattern `^.+$/`. Please ensure that the subject + didn't match the configured pattern. Please ensure that the subject starts with an uppercase character. # For work-in-progress PRs you can typically use draft pull requests # from Github. However, private repositories on the free plan don't have @@ -52,4 +53,4 @@ jobs: validateSingleCommit: false # Related to `validateSingleCommit` you can opt-in to validate that the PR # title matches a single commit to avoid confusion. - validateSingleCommitMatchesPrTitle: false + validateSingleCommitMatchesPrTitle: false \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2dddfaa..8260ae2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,18 +16,8 @@ jobs: name: Release runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Release action + id: release + uses: pagopa/eng-github-actions-iac-template/global/release-action@main # with: - persist-credentials: false - fetch-depth: 0 - - - name: Release - uses: cycjimmy/semantic-release-action@v2 - with: - semantic_version: 18.0.0 - extra_plugins: | - @semantic-release/release-notes-generator@10.0.3 - @semantic-release/git@10.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }}