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.--> -