Skip to content

Commit 5732836

Browse files
committed
Merge dev into main
2 parents 51fa803 + 4b46ade commit 5732836

26 files changed

+645
-98
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI Pipeline - DEV
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- dev
7+
8+
env:
9+
GIT__BRANCH : 'dev'
10+
RELEASE_TYPE : 'minor'
11+
PACKAGE_NAME : 'osbot_docker'
12+
13+
jobs:
14+
15+
run-tests:
16+
name: "Run tests"
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: "run-tests"
21+
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pytest__run-tests@dev
22+
23+
increment-tag:
24+
name: Increment Tag - DEV
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Increment Tag
29+
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__increment-tag@dev
30+
with:
31+
release_type: ${{ env.RELEASE_TYPE }}
32+
needs:
33+
- run-tests
34+
35+
publish-to-pypi:
36+
if: False
37+
name: "Publish to: PYPI"
38+
permissions:
39+
id-token: write
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
- name: Git Update Current Branch
44+
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__update_branch@dev
45+
- name: publish-to-pypi
46+
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pypi__twine__publish@dev
47+
needs:
48+
- increment-tag
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name : CI Pipeline - Main
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
8+
env:
9+
GIT__BRANCH : 'main'
10+
RELEASE_TYPE : 'major'
11+
PACKAGE_NAME : 'osbot_docker'
12+
13+
jobs:
14+
15+
run-tests:
16+
name: "Run tests"
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: "run-tests"
21+
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pytest__run-tests@dev
22+
23+
increment-tag:
24+
name: Increment Tag - Main
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Increment Tag
29+
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__increment-tag@dev
30+
with:
31+
release_type: ${{ env.RELEASE_TYPE }}
32+
needs:
33+
- run-tests
34+
35+
publish-to-pypi:
36+
name: "Publish to: PYPI"
37+
permissions:
38+
id-token: write
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- name: Git Update Current Branch
43+
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/git__update_branch@dev
44+
- name: publish-to-pypi
45+
uses: owasp-sbot/OSBot-GitHub-Actions/.github/actions/pypi__twine__publish@dev
46+
needs:
47+
- increment-tag

gh-release-to-main.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
git pull
2+
git checkout main
3+
git pull origin main
4+
git merge --no-ff dev -m "Merge dev into main"
5+
git push origin main
6+
git checkout dev
7+
git merge main -m "Merge main into dev"

0 commit comments

Comments
 (0)