Skip to content

Commit

Permalink
workflow work
Browse files Browse the repository at this point in the history
  • Loading branch information
goldbuick committed Dec 14, 2024
1 parent e2addb3 commit 082a28a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-pr-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
with:
github_token: ${{ github.token }}
target_branch: 'dev'
commit_message: 'Branch {target_branch} auto-merged {source_ref}'
commit_message: 'ci: {target_branch} auto-merged {source_ref}'
26 changes: 26 additions & 0 deletions .github/workflows/on-push-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: auto-version on dev

on:
push:
branches:
- dev

jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
set-safe-directory: true

- name: 'inc version'
id: version-bump
uses: 'phips28/gh-action-bump-version@master'
with:
tag-prefix: 'v'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'cat package.json'
run: cat ./package.json
20 changes: 0 additions & 20 deletions .github/workflows/on-push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,8 @@ on:
- main

jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
set-safe-directory: true

- name: 'inc version'
id: version-bump
uses: 'phips28/gh-action-bump-version@master'
with:
tag-prefix: 'v'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'cat package.json'
run: cat ./package.json

build:
runs-on: ubuntu-latest
needs: bump-version
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 082a28a

Please sign in to comment.