Skip to content

Commit cedf320

Browse files
authored
release
1 parent 06d9e65 commit cedf320

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/pipeline.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# CI/CD Release Workflow
22
name: pipeline
33

4+
# ensure permissions are explicitly defined
5+
# by configuring one we disable the remaining permissions
6+
# see: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idpermissions
7+
# permissions:
8+
# contents: read
9+
410
on:
5-
pull_request:
6-
tags-ignore:
7-
- '*'
811
push:
912
branches:
1013
- 'master'
@@ -73,10 +76,8 @@ jobs:
7376

7477

7578
release:
76-
if: startsWith(github.ref, 'refs/tags/')
77-
78-
# if: ${{ github.event_name == 'create' && github.event.ref_type == 'tag' }}
79-
79+
# if: startsWith(github.ref, 'refs/tags/')
80+
if: ${{ github.event_name == 'create' && github.event.ref_type == 'tag' }}
8081
runs-on: ubuntu-latest
8182
steps:
8283
- name: Checkout

0 commit comments

Comments
 (0)