Skip to content

Commit bab4c38

Browse files
chore: file sync update
Signed-off-by: sol-office-file-synchronization[bot] Sync: synced local '.github/workflows/release-please.yml' with remote 'sync/.github/workflows/release-please.yml'
1 parent dc5aa79 commit bab4c38

1 file changed

Lines changed: 8 additions & 29 deletions

File tree

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,17 @@
1-
# .github/workflows/release-please.yml
1+
# This file is synced from City-of-Helsinki/.github and should not be edited directly
22
name: release-please
33
on:
44
push:
55
branches:
66
- main
7-
# manual triggered
7+
schedule:
8+
# Run daily to keep the release PR date current
9+
- cron: '1 0 * * *'
810
workflow_dispatch:
9-
inputs:
10-
label:
11-
description: 'PR label, force update for release-please PRs. Do not use spaces!'
12-
required: false
13-
type: string
1411

1512
jobs:
1613
release-please:
17-
runs-on: ubuntu-latest
18-
steps:
19-
- name: Install release-please client
20-
run: npm i release-please -g
21-
# extra label will be set on open release-please PR's to ensure PR re-generation (manifest -file merge issue)
22-
# extra label includes the released component tag or manual triggered label name
23-
- name: Create release pr
24-
run: |
25-
if [ -n "${{ github.event.release.tag_name }}" ]; then
26-
LABEL="--label ${{ github.event.release.tag_name }}"
27-
elif [ -n "${{ inputs.label }}" ]; then
28-
LABEL="--label ${{ inputs.label }}"
29-
fi
30-
echo $LABEL
31-
32-
release-please release-pr --token=${{ secrets.GITHUB_TOKEN }} --repo-url=$GITHUB_REPOSITORY $LABEL
33-
# create release
34-
# rerun release-pr after release creation to fix manifest -file merge issue
35-
- name: Create github release
36-
run: |
37-
release-please github-release --token=${{ secrets.GITHUB_TOKEN }} --repo-url=$GITHUB_REPOSITORY
38-
release-please release-pr --token=${{ secrets.GITHUB_TOKEN }} --repo-url=$GITHUB_REPOSITORY
14+
uses: City-of-Helsinki/.github/.github/workflows/release-please.yml@main
15+
permissions:
16+
contents: write
17+
pull-requests: write

0 commit comments

Comments
 (0)