Skip to content

Commit 021337a

Browse files
authored
Merge pull request #11 from elgatosf/ci
chore: refactor main workflow to build on PR and push to main/tag
2 parents fe72fff + 5e41239 commit 021337a

File tree

2 files changed

+14
-28
lines changed

2 files changed

+14
-28
lines changed

.github/workflows/push.yaml renamed to .github/workflows/build-and-tag-release.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
name: Push to master
1+
name: Build and tag release
22
run-name: ${{ github.ref_name }} push run 🚀
3+
34
on:
45
push:
56
branches:
@@ -8,11 +9,22 @@ on:
89
- "release/**"
910
tags:
1011
- "*"
12+
13+
workflow_dispatch:
14+
15+
pull_request:
16+
paths-ignore:
17+
- "**.md"
18+
branches: [master, main]
19+
types: [opened, synchronize, reopened]
20+
1121
permissions:
1222
contents: write
23+
1324
concurrency:
14-
group: "${{ github.workflow }} @ ${{ github.ref }}"
25+
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
1526
cancel-in-progress: ${{ github.ref_type == 'tag' }}
27+
1628
jobs:
1729
# check-format:
1830
# name: Check Formatting 🔍

.github/workflows/pr-pull.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)