Skip to content

Commit 8c60046

Browse files
committed
Update workflow permisions
Signed-off-by: Karel Blavka <karel.blavka@hardwario.com>
1 parent 83e59b0 commit 8c60046

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
name: Main
1+
name: Test
22

3-
on: [push]
3+
on:
4+
push:
5+
paths-ignore:
6+
- '**/README.md'
7+
- '.*'
8+
pull_request:
9+
types: [opened, synchronize]
10+
11+
permissions:
12+
contents: read
413

514
defaults:
615
run:

.github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
name: Upload Python Package
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
permissions:
13+
contents: write
614

715
jobs:
816
deploy:

0 commit comments

Comments
 (0)