chore(deps): bump actions/upload-artifact from 6 to 7 (#12467) #353
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Changelog | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ master ] | |
| tags: [ "*" ] | |
| jobs: | |
| changelog: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| ssh-key: ${{ secrets.DEPLOYMENT_SSH_KEY }} | |
| fetch-depth: 0 | |
| - name: Generate changelog | |
| uses: docker://toolhippie/calens:0.4.0 | |
| with: | |
| entrypoint: /bin/sh | |
| args: -c "calens > CHANGELOG.md" | |
| - name: Show diff | |
| run: git diff | |
| - name: Output | |
| run: cat CHANGELOG.md | |
| - name: Publish | |
| if: > | |
| github.event_name == 'push' && | |
| github.ref == 'refs/heads/master' && | |
| !startsWith(github.ref, 'refs/tags/') && | |
| !startsWith(github.ref, 'refs/pull/') | |
| run: | | |
| git config user.name "ownClouders" | |
| git config user.email "devops@owncloud.com" | |
| git add CHANGELOG.md | |
| if git diff --staged --quiet; then | |
| echo "No changes to commit" | |
| exit 0 | |
| fi | |
| git commit -m "Automated changelog update [skip ci]" | |
| git push origin master |