Browse Source

Merge pull request #9 from discoverygarden/fix/update-workflows

TWM-15: Updating workflows
1.x
Noel Chiasson 2 years ago committed by GitHub
parent
commit
855b0aad19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      .github/workflows/auto-semver.yml
  2. 4
      .github/workflows/lint.yml
  3. 14
      .github/workflows/semver.yml

25
.github/workflows/auto-semver.yml

@ -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

4
.github/workflows/auto-lint.yml → .github/workflows/lint.yml

@ -1,14 +1,16 @@
---
name: Code Linting name: Code Linting
on: on:
pull_request: pull_request:
branches: branches:
- 1.x - 1.x
workflow_dispatch:
jobs: jobs:
Lint: Lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Run CodeSniffer - name: Run CodeSniffer
uses: discoverygarden/CodeSniffer@v1 uses: discoverygarden/CodeSniffer@v1

14
.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
Loading…
Cancel
Save