From 0320300a236c6f2320e3b188d1cc7c79f8cfb71d Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Fri, 15 Jul 2022 18:09:11 +0200 Subject: [PATCH] [Bot] Update CSL styles (#8978) Co-authored-by: github actions --- .../csl-locales/.github/workflows/merge.yaml | 39 +- .../csl-styles/.github/workflows/merge.yaml | 39 +- ...nnals-of-allergy-asthma-and-immunology.csl | 267 ++++++ ...sociacao-brasileira-de-normas-tecnicas.csl | 4 +- .../australasian-journal-of-philosophy.csl | 317 +++++++ .../bibliothek-forschung-und-praxis.csl | 623 ++++++++++++++ buildres/csl/csl-styles/chaucer-review.csl | 775 ++++++++++++++++++ .../chemical-engineering-technology.csl | 173 ++++ buildres/csl/csl-styles/composer.json | 13 + .../csl-styles/copernicus-publications.csl | 2 +- ...nnals-of-allergy-asthma-and-immunology.csl | 14 - .../deutsche-gesellschaft-fur-psychologie.csl | 1 + .../csl/csl-styles/entomological-review.csl | 231 ++++++ .../csl/csl-styles/haffner-style-manual.csl | 512 ++++++++++++ buildres/csl/csl-styles/health-physics.csl | 161 ++++ ...esponsibility-in-education-and-science.csl | 8 +- buildres/csl/csl-styles/nature-no-et-al.csl | 26 +- .../csl/csl-styles/nature-no-superscript.csl | 26 +- buildres/csl/csl-styles/nature.csl | 26 +- buildres/csl/csl-styles/renamed-styles.json | 3 +- buildres/csl/csl-styles/science.csl | 1 + ...ciences-po-ecole-doctorale-author-date.csl | 4 +- ...ciences-po-ecole-doctorale-note-french.csl | 10 +- ...lical-literature-fullnote-bibliography.csl | 2 +- buildres/csl/csl-styles/spec/filters.yaml | 1 + .../style-manual-australian-government.csl | 10 +- ...technische-universitat-dresden-medizin.csl | 265 ------ ...-of-pretoria-harvard-theology-religion.csl | 347 ++++++++ 28 files changed, 3589 insertions(+), 311 deletions(-) create mode 100644 buildres/csl/csl-styles/annals-of-allergy-asthma-and-immunology.csl create mode 100644 buildres/csl/csl-styles/australasian-journal-of-philosophy.csl create mode 100644 buildres/csl/csl-styles/bibliothek-forschung-und-praxis.csl create mode 100644 buildres/csl/csl-styles/chaucer-review.csl create mode 100644 buildres/csl/csl-styles/chemical-engineering-technology.csl create mode 100644 buildres/csl/csl-styles/composer.json delete mode 100644 buildres/csl/csl-styles/dependent/annals-of-allergy-asthma-and-immunology.csl create mode 100644 buildres/csl/csl-styles/entomological-review.csl create mode 100644 buildres/csl/csl-styles/haffner-style-manual.csl create mode 100644 buildres/csl/csl-styles/health-physics.csl delete mode 100644 buildres/csl/csl-styles/technische-universitat-dresden-medizin.csl create mode 100644 buildres/csl/csl-styles/university-of-pretoria-harvard-theology-religion.csl diff --git a/buildres/csl/csl-locales/.github/workflows/merge.yaml b/buildres/csl/csl-locales/.github/workflows/merge.yaml index 0a0d9db955e..7e5736cc960 100644 --- a/buildres/csl/csl-locales/.github/workflows/merge.yaml +++ b/buildres/csl/csl-locales/.github/workflows/merge.yaml @@ -48,6 +48,10 @@ jobs: - deleted: [ '*.csl', 'dependent/*.csl', '*.xml' ] workflows: - added|modified: .github/workflows/*.yaml + updated_composer: + - added|modified: composer.json + deleted_composer: + - deleted: composer.json - name: Changed files if: github.event_name == 'push' @@ -87,11 +91,24 @@ jobs: run: cd release && git rm ${{ steps.update.outputs.deleted_files }} if: github.event_name == 'push' && steps.update.outputs.deleted == 'true' + - name: Update composer.json + if: steps.update.outputs.updated_composer == 'true' + run: | + cp composer.json release/composer.json + cd release + git add composer.json + + - name: Delete composer.json + if: steps.update.outputs.deleted_composer == 'true' + run: | + cd release + git rm composer.json + - uses: stefanzweifel/git-auto-commit-action@v4 with: repository: 'release' - commit_message: Releasing ${{ steps.update.outputs.updated_files }} ${{ steps.update.outputs.deleted_files }} - if: github.event_name == 'push' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true') + commit_message: Releasing ${{ steps.update.outputs.updated_files }} ${{ steps.update.outputs.deleted_files }} ${{ steps.update.outputs.updated_composer_files }} ${{ steps.update.outputs.deleted_composer_files }} + if: github.event_name == 'push' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true' || steps.update.outputs.updated_composer == 'true' || steps.update.outputs.deleted_composer == 'true') - uses: stefanzweifel/git-auto-commit-action@v4 with: @@ -116,3 +133,21 @@ jobs: git-user: "csl-bot" git-user-email: github@citationstyles.org git-commit-message: copied ${{ steps.update.outputs.workflows_files }} from styles + + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v5.6 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + default_bump: patch + if: github.event_name == 'push' && hashFiles('composer.json') != '' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true') + + - name: Create a GitHub release + uses: softprops/action-gh-release@v0.1.14 + env: + github_token: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ steps.tag_version.outputs.new_tag }} + name: Release ${{ steps.tag_version.outputs.new_tag }} + body: Released ${{ steps.update.outputs.updated_files }} ${{ steps.update.outputs.deleted_files }} ${{ steps.update.outputs.updated_composer_files }} ${{ steps.update.outputs.deleted_composer_files }} + if: github.event_name == 'push' && hashFiles('composer.json') != '' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true') diff --git a/buildres/csl/csl-styles/.github/workflows/merge.yaml b/buildres/csl/csl-styles/.github/workflows/merge.yaml index 0a0d9db955e..7e5736cc960 100644 --- a/buildres/csl/csl-styles/.github/workflows/merge.yaml +++ b/buildres/csl/csl-styles/.github/workflows/merge.yaml @@ -48,6 +48,10 @@ jobs: - deleted: [ '*.csl', 'dependent/*.csl', '*.xml' ] workflows: - added|modified: .github/workflows/*.yaml + updated_composer: + - added|modified: composer.json + deleted_composer: + - deleted: composer.json - name: Changed files if: github.event_name == 'push' @@ -87,11 +91,24 @@ jobs: run: cd release && git rm ${{ steps.update.outputs.deleted_files }} if: github.event_name == 'push' && steps.update.outputs.deleted == 'true' + - name: Update composer.json + if: steps.update.outputs.updated_composer == 'true' + run: | + cp composer.json release/composer.json + cd release + git add composer.json + + - name: Delete composer.json + if: steps.update.outputs.deleted_composer == 'true' + run: | + cd release + git rm composer.json + - uses: stefanzweifel/git-auto-commit-action@v4 with: repository: 'release' - commit_message: Releasing ${{ steps.update.outputs.updated_files }} ${{ steps.update.outputs.deleted_files }} - if: github.event_name == 'push' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true') + commit_message: Releasing ${{ steps.update.outputs.updated_files }} ${{ steps.update.outputs.deleted_files }} ${{ steps.update.outputs.updated_composer_files }} ${{ steps.update.outputs.deleted_composer_files }} + if: github.event_name == 'push' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true' || steps.update.outputs.updated_composer == 'true' || steps.update.outputs.deleted_composer == 'true') - uses: stefanzweifel/git-auto-commit-action@v4 with: @@ -116,3 +133,21 @@ jobs: git-user: "csl-bot" git-user-email: github@citationstyles.org git-commit-message: copied ${{ steps.update.outputs.workflows_files }} from styles + + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v5.6 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + default_bump: patch + if: github.event_name == 'push' && hashFiles('composer.json') != '' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true') + + - name: Create a GitHub release + uses: softprops/action-gh-release@v0.1.14 + env: + github_token: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ steps.tag_version.outputs.new_tag }} + name: Release ${{ steps.tag_version.outputs.new_tag }} + body: Released ${{ steps.update.outputs.updated_files }} ${{ steps.update.outputs.deleted_files }} ${{ steps.update.outputs.updated_composer_files }} ${{ steps.update.outputs.deleted_composer_files }} + if: github.event_name == 'push' && hashFiles('composer.json') != '' && (steps.update.outputs.updated == 'true' || steps.update.outputs.deleted == 'true') diff --git a/buildres/csl/csl-styles/annals-of-allergy-asthma-and-immunology.csl b/buildres/csl/csl-styles/annals-of-allergy-asthma-and-immunology.csl new file mode 100644 index 00000000000..b612c5ff55f --- /dev/null +++ b/buildres/csl/csl-styles/annals-of-allergy-asthma-and-immunology.csl @@ -0,0 +1,267 @@ + + diff --git a/buildres/csl/csl-styles/associacao-brasileira-de-normas-tecnicas.csl b/buildres/csl/csl-styles/associacao-brasileira-de-normas-tecnicas.csl index 2b769703f27..cc8975fa8c2 100644 --- a/buildres/csl/csl-styles/associacao-brasileira-de-normas-tecnicas.csl +++ b/buildres/csl/csl-styles/associacao-brasileira-de-normas-tecnicas.csl @@ -82,7 +82,7 @@ tendo as inicias separadas por ponto.--> -