8000 feat: Updated Release action (#61) · pagopa/github-actions-template@d97a708 · GitHub
[go: up one dir, main page]

Skip to content

Commit d97a708

Browse files
feat: Updated Release action (#61)
updated Release pipeline
1 parent 583430c commit d97a708

File tree

1 file changed

+10
-26
lines changed

1 file changed

+10
-26
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,24 @@
11
name: Release
22

33
on:
4-
# Trigger the workflow on push on the main branch
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
56
push:
67
branches:
78
- main
89
paths-ignore:
9-
- 'CODEOWNERS'
10-
- '**.md'
11-
- '.**'
12-
# Trigger the workflow by dispatching
13-
workflow_dispatch:
10+
- "CODEOWNERS"
11+
- "**.md"
12+
- ".**"
1413

1514
jobs:
1615
release:
1716
name: Release
18-
runs-on: ubuntu-22.04
19-
17+
runs-on: ubuntu-latest
2018
steps:
21-
- name: Checkout
22-
id: checkout
23-
# from https://github.com/actions/checkout/commits/main
24-
uses: actions/checkout@1f9a0c22da41e6ebfa534300ef656657ea2c6707
25-
with:
26-
persist-credentials: false
27-
fetch-depth: 0
28-
29-
- name: Release
19+
- name: Release action
3020
id: release
31-
# from https://github.com/cycjimmy/semantic-release-action/commits/main
32-
uses: cycjimmy/semantic-release-action@bdd914ff2423e2792c73475f11e8da603182f32d
21+
# https://github.com/pagopa/eng-github-actions-iac-template/releases/tag/v1.20.0
22+
uses: pagopa/eng-github-actions-iac-template/global/release-action@5c7e5f690ad0f07f3bd945bdebf2a6c7a575b33f
3323
with:
34-
semantic_version: 18.0.0
35-
extra_plugins: |
36-
@semantic-release/release-notes-generator@10.0.3
37-
@semantic-release/git@10.0.1
38-
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
24+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)
0