From b7b1baf11407738be46072e86b81a0acb8e386d6 Mon Sep 17 00:00:00 2001 From: Noel Chiasson Date: Mon, 24 Jul 2023 12:57:16 -0300 Subject: [PATCH] TWM-15: Updating workflows with latest changes --- .github/workflows/auto-semver.yml | 25 ------------------- .github/workflows/{auto-lint.yml => lint.yml} | 4 ++- .github/workflows/semver.yml | 14 +++++++++++ 3 files changed, 17 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/auto-semver.yml rename .github/workflows/{auto-lint.yml => lint.yml} (78%) create mode 100644 .github/workflows/semver.yml diff --git a/.github/workflows/auto-semver.yml b/.github/workflows/auto-semver.yml deleted file mode 100644 index bbc2b39..0000000 --- a/.github/workflows/auto-semver.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Auto Semver -on: - pull_request_target: - types: closed - branches: - - 1.x -jobs: - update: - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v2 - - name: Checkout Auto Semver Action Repo - uses: actions/checkout@v2 - with: - repository: discoverygarden/auto-semver - ref: v1 - token: ${{ secrets.GITHUB_TOKEN }} - path: .github/actions/auto-semver - - name: Run Auto Semver - uses: ./.github/actions/auto-semver - with: - token: ${{ secrets.GITHUB_TOKEN }} - prefix: v diff --git a/.github/workflows/auto-lint.yml b/.github/workflows/lint.yml similarity index 78% rename from .github/workflows/auto-lint.yml rename to .github/workflows/lint.yml index c63079d..f7985d9 100644 --- a/.github/workflows/auto-lint.yml +++ b/.github/workflows/lint.yml @@ -1,14 +1,16 @@ +--- name: Code Linting on: pull_request: branches: - 1.x + workflow_dispatch: jobs: Lint: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Run CodeSniffer uses: discoverygarden/CodeSniffer@v1 diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml new file mode 100644 index 0000000..27e1ec6 --- /dev/null +++ b/.github/workflows/semver.yml @@ -0,0 +1,14 @@ +--- +name: Auto Semver +on: + pull_request_target: + types: closed + branches: + - 1.x +jobs: + update: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - name: Run Auto Semver + uses: discoverygarden/auto-semver@v1