Skip to content

Commit 2fbff3a

Browse files
committed
chore: cicd updates
1 parent bbfeed6 commit 2fbff3a

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Publish release
22

33
on:
44
pull_request_target:
5+
branches:
6+
- main
57
types:
68
- closed
79

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Pull request change base branch
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- main
7+
types:
8+
- opened
9+
10+
jobs:
11+
change-base-branch:
12+
if: ${{ !startsWith(github.head_ref, 'release/') && github.head_ref != 'develop' }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Change base branch
16+
run: |
17+
gh pr edit ${{ github.event.pull_request.number }} --base develop
18+
env:
19+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.github/workflows/shared-packages.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
timeout-minutes: 15
1111
permissions:
1212
checks: write
13-
pull-requests: write
1413
contents: read
1514
steps:
1615
- uses: actions/checkout@v4
@@ -57,21 +56,6 @@ jobs:
5756
format: "table"
5857
output: "trivy-scanning-results.txt"
5958

60-
- name: Format trivy message
61-
run: |
62-
echo "Trivy scanning results." >> trivy.txt
63-
cat trivy-scanning-results.txt >> trivy.txt
64-
65-
- name: Add trivy report to PR
66-
uses: thollander/actions-comment-pull-request@v2
67-
continue-on-error: true
68-
if: ${{ github.event_name == 'pull_request' }}
69-
with:
70-
filePath: trivy.txt
71-
reactions: ""
72-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73-
comment_tag: trivy
74-
7559
- name: Check licenses
7660
run: |
7761
uv run ./check_licenses.sh

0 commit comments

Comments
 (0)