|
1 | | -name: Changelog |
2 | | - |
3 | | -on: |
4 | | - pull_request: |
5 | | - push: |
6 | | - branches: [ "6" ] |
7 | | - tags: [ "*" ] |
8 | | - |
9 | | -permissions: {} |
10 | | - |
11 | | -jobs: |
12 | | - changelog: |
13 | | - runs-on: ubuntu-latest |
14 | | - permissions: {} |
15 | | - |
16 | | - steps: |
17 | | - - name: Checkout |
18 | | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
19 | | - with: |
20 | | - fetch-depth: 0 |
21 | | - persist-credentials: false |
22 | | - |
23 | | - - name: Generate changelog |
24 | | - uses: actionhippie/calens@244f3e5c328b842a740113859b87bbebf697f63b # v1.13.1 |
25 | | - with: |
26 | | - target: CHANGELOG.md |
27 | | - |
28 | | - - name: Show diff |
29 | | - run: git diff |
30 | | - |
31 | | - - name: Output |
32 | | - run: cat CHANGELOG.md |
33 | | - |
34 | | - - name: Generate GitHub App token |
35 | | - id: app-token |
36 | | - if: github.event_name == 'push' && github.ref == 'refs/heads/master' |
37 | | - uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1.11.6 |
38 | | - with: |
39 | | - app-id: ${{ secrets.TRANSLATION_APP_ID }} |
40 | | - private-key: ${{ secrets.TRANSLATION_APP_PRIVATE_KEY }} |
41 | | - |
42 | | - - name: Create or update changelog pull request |
43 | | - if: github.event_name == 'push' && github.ref == 'refs/heads/master' |
44 | | - uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0 |
45 | | - with: |
46 | | - token: ${{ steps.app-token.outputs.token }} |
47 | | - branch: chore/changelog-update |
48 | | - commit-message: "chore: update changelog" |
49 | | - title: "chore: update changelog" |
50 | | - body: "Automated changelog update. This pull request is updated on each push to master — merging it will close it and a fresh one will be opened on the next change." |
51 | | - delete-branch: true |
52 | | - sign-commits: true |
| 1 | +#name: Changelog |
| 2 | +# |
| 3 | +#on: |
| 4 | +# pull_request: |
| 5 | +# push: |
| 6 | +# branches: [ "6" ] |
| 7 | +# tags: [ "*" ] |
| 8 | +# |
| 9 | +#permissions: {} |
| 10 | +# |
| 11 | +#jobs: |
| 12 | +# changelog: |
| 13 | +# runs-on: ubuntu-latest |
| 14 | +# permissions: {} |
| 15 | +# |
| 16 | +# steps: |
| 17 | +# - name: Checkout |
| 18 | +# uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 19 | +# with: |
| 20 | +# fetch-depth: 0 |
| 21 | +# persist-credentials: false |
| 22 | +# |
| 23 | +# - name: Generate changelog |
| 24 | +# uses: actionhippie/calens@244f3e5c328b842a740113859b87bbebf697f63b # v1.13.1 |
| 25 | +# with: |
| 26 | +# target: CHANGELOG.md |
| 27 | +# |
| 28 | +# - name: Show diff |
| 29 | +# run: git diff |
| 30 | +# |
| 31 | +# - name: Output |
| 32 | +# run: cat CHANGELOG.md |
| 33 | +# |
| 34 | +# - name: Generate GitHub App token |
| 35 | +# id: app-token |
| 36 | +# if: github.event_name == 'push' && github.ref == 'refs/heads/master' |
| 37 | +# uses: actions/create-github-app-token@21cfef2b496dd8ef5b904c159339626a10ad380e # v1.11.6 |
| 38 | +# with: |
| 39 | +# app-id: ${{ secrets.TRANSLATION_APP_ID }} |
| 40 | +# private-key: ${{ secrets.TRANSLATION_APP_PRIVATE_KEY }} |
| 41 | +# |
| 42 | +# - name: Create or update changelog pull request |
| 43 | +# if: github.event_name == 'push' && github.ref == 'refs/heads/master' |
| 44 | +# uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0 |
| 45 | +# with: |
| 46 | +# token: ${{ steps.app-token.outputs.token }} |
| 47 | +# branch: chore/changelog-update |
| 48 | +# commit-message: "chore: update changelog" |
| 49 | +# title: "chore: update changelog" |
| 50 | +# body: "Automated changelog update. This pull request is updated on each push to master — merging it will close it and a fresh one will be opened on the next change." |
| 51 | +# delete-branch: true |
| 52 | +# sign-commits: true |
0 commit comments