-
Notifications
You must be signed in to change notification settings - Fork 22
63 lines (54 loc) · 1.55 KB
/
release-drafter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Release Drafter
on:
push:
branches:
- main
# pull_request:
# types: [opened, reopened, synchronize]
workflow_dispatch:
jobs:
correct_repository:
runs-on: ubuntu-latest
steps:
- name: fail on fork
if: github.repository_owner != 'Backbase'
run: exit 1
update_release_draft-transactions:
needs: correct_repository
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
with:
config-name: release-drafter-transactions.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update_release_draft-transfer:
needs: correct_repository
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
with:
config-name: release-drafter-transfer.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update-angular-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Get Angular version
id: get-angular-version
run: |
version=$(node -p "require('./package-lock.json').packages['node_modules/@angular/core'].version.split('.').shift()")
echo "::set-output name=version::$version"
- name: Update tag
run: |
tag='angular@v${{ steps.get-angular-version.outputs.version }}'
git tag $tag -f
git push origin $tag -f