Sha256: f1eeaee42594222971136618550e67f1fb0a24f786a459f9c1ec24c866520b01
Contents?: true
Size: 1.89 KB
Versions: 9
Compression:
Stored size: 1.89 KB
Contents
name: Changelog on: pull_request: types: [closed] release: types: [published] issues: types: [closed, edited] jobs: generate_changelog: runs-on: ubuntu-latest name: Generate changelog for master branch steps: - uses: actions/checkout@v2 with: fetch-depth: 0 # otherwise, you will failed to push refs to dest repo - name: Generate changelog uses: charmixer/auto-changelog-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - name: Commit files env: ACTION_EMAIL: action@github.com ACTION_USERNAME: GitHub Action run: | git config --local user.email "$ACTION_EMAIL" git config --local user.name "$ACTION_USERNAME" git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && echo ::set-env name=push::1 || echo "No changes to CHANGELOG.md" - name: Push changes if: env.push == 1 env: # CI_USER: ${{ secrets.YOUR_GITHUB_USER }} CI_TOKEN: ${{ secrets.CHANGELOG_GITHUB_TOKEN }} run: | git push "https://$GITHUB_ACTOR:$CI_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:master # - name: Push changelog to master # if: env.push == 1 # uses: ad-m/github-push-action@master # with: # github_token: ${{ secrets.CHANGELOG_GITHUB_TOKEN }} # branch: master # - name: Cherry-pick changelog to development # if: env.push == 1 # env: # ACTION_EMAIL: action@github.com # ACTION_USERNAME: GitHub Action # run: | # git config --local user.email "$ACTION_EMAIL" # git config --local user.name "$ACTION_USERNAME" # commit_hash=`git show HEAD | egrep commit\ .+$ | cut -d' ' -f2` # git checkout development # git pull # git cherry-pick $commit_hash # git push
Version data entries
9 entries across 9 versions & 2 rubygems