|
1 | | -name: Changelog |
2 | | - |
3 | | -on: |
4 | | - pull_request: |
5 | | - push: |
6 | | - branches: [ "6" ] |
7 | | - tags: [ "*" ] |
8 | | - |
9 | | -jobs: |
10 | | - changelog: |
11 | | - runs-on: ubuntu-latest |
12 | | - permissions: |
13 | | - contents: write |
14 | | - pull-requests: read |
15 | | - env: |
16 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
17 | | - |
18 | | - steps: |
19 | | - - name: Checkout |
20 | | - uses: actions/checkout@v4 |
21 | | - |
22 | | - - name: Generate changelog |
23 | | - uses: docker://toolhippie/calens:0.4.0 |
24 | | - with: |
25 | | - entrypoint: /bin/sh |
26 | | - args: -c "calens > CHANGELOG.md" |
27 | | - |
28 | | - - name: Show diff |
29 | | - run: git diff |
30 | | - |
31 | | - - name: Output |
32 | | - run: cat CHANGELOG.md |
33 | | - |
34 | | - - name: Publish |
35 | | - if: > |
36 | | - github.event_name == 'push' && |
37 | | - github.ref == 'refs/heads/master' && |
38 | | - !startsWith(github.ref, 'refs/tags/') && |
39 | | - !startsWith(github.ref, 'refs/pull/') |
40 | | - run: | |
41 | | - git config user.name "ownClouders" |
42 | | - git config user.email "[email protected]" |
43 | | - git add CHANGELOG.md |
44 | | - if git diff --staged --quiet; then |
45 | | - echo "No changes to commit" |
46 | | - exit 0 |
47 | | - fi |
48 | | - git commit -m "Automated changelog update [skip ci]" |
49 | | - git push origin master |
| 1 | +#name: Changelog |
| 2 | +# |
| 3 | +#on: |
| 4 | +# pull_request: |
| 5 | +# push: |
| 6 | +# branches: [ "6" ] |
| 7 | +# tags: [ "*" ] |
| 8 | +# |
| 9 | +#jobs: |
| 10 | +# changelog: |
| 11 | +# runs-on: ubuntu-latest |
| 12 | +# permissions: |
| 13 | +# contents: write |
| 14 | +# pull-requests: read |
| 15 | +# env: |
| 16 | +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 17 | +# |
| 18 | +# steps: |
| 19 | +# - name: Checkout |
| 20 | +# uses: actions/checkout@v4 |
| 21 | +# |
| 22 | +# - name: Generate changelog |
| 23 | +# uses: docker://toolhippie/calens:0.4.0 |
| 24 | +# with: |
| 25 | +# entrypoint: /bin/sh |
| 26 | +# args: -c "calens > CHANGELOG.md" |
| 27 | +# |
| 28 | +# - name: Show diff |
| 29 | +# run: git diff |
| 30 | +# |
| 31 | +# - name: Output |
| 32 | +# run: cat CHANGELOG.md |
| 33 | +# |
| 34 | +# - name: Publish |
| 35 | +# if: > |
| 36 | +# github.event_name == 'push' && |
| 37 | +# github.ref == 'refs/heads/master' && |
| 38 | +# !startsWith(github.ref, 'refs/tags/') && |
| 39 | +# !startsWith(github.ref, 'refs/pull/') |
| 40 | +# run: | |
| 41 | +# git config user.name "ownClouders" |
| 42 | +# git config user.email "[email protected]" |
| 43 | +# git add CHANGELOG.md |
| 44 | +# if git diff --staged --quiet; then |
| 45 | +# echo "No changes to commit" |
| 46 | +# exit 0 |
| 47 | +# fi |
| 48 | +# git commit -m "Automated changelog update [skip ci]" |
| 49 | +# git push origin master |
0 commit comments