diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml deleted file mode 100644 index 49ca4d8..0000000 --- a/.github/workflows/changelog.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Update CHANGELOG - -on: - # push: - # branches: - # - "*" - # tags: - # - "*" - create: - -jobs: - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. - fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. - - uses: actions/setup-ruby@v1 - # with: - # ruby-version: '2.6' # Version range or exact version of a Ruby version to use, using semvers version range syntax. - - name: Generate CHANGELOG - env: - CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gem install github_changelog_generator - github_changelog_generator -u brsynth -p brs-utils - - name: Commit files - run: | - git config --local user.email "$GITHUB_EMAIL" - git config --local user.name "$GITHUB_USERNAME" - git commit -m "doc(CHANGELOG): update" -a - env: - GITHUB_USERNAME: brsynth - GITHUB_EMAIL: joan.herisson@univ-evry.fr - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.ref }} diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index fdb896c..0d20d4a 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -31,3 +31,29 @@ jobs: body: ${{ steps.tag_version.outputs.changelog }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v2 + with: + persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. + fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. + - uses: actions/setup-ruby@v1 + # with: + # ruby-version: '2.6' # Version range or exact version of a Ruby version to use, using semvers version range syntax. + - name: Generate CHANGELOG + env: + CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gem install github_changelog_generator + github_changelog_generator -u brsynth -p brs-utils + - name: Commit files + run: | + git config --local user.email "$GITHUB_EMAIL" + git config --local user.name "$GITHUB_USERNAME" + git commit -m "doc(CHANGELOG): update" -a + env: + GITHUB_USERNAME: brsynth + GITHUB_EMAIL: joan.herisson@univ-evry.fr + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }}