Browse Source

TWM-15: Updating workflows

pull/9/head
Noel Chiasson 2 years ago
parent
commit
c6c54c0947
  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
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

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