Skip to content

Commit

Permalink
Add composer.json (#5668)
Browse files Browse the repository at this point in the history
* Update merge.yaml

* Update sheldon.yaml

* Update merge.yaml

* Update sheldon.yaml

* Create composer.json

* Update acm-siggraph.csl

* Update aci-materials-journal.csl

* Revert acm-siggraph.csl

* Revert aci-materials-journal.csl

* Update composer.json

* Update filters.yaml

* Update properties for composer.json

Remove unnnecessary properties and update license for composer.json

* Remove unnecesary steps from sheldon.yaml

* Optimize steps structure for adding composer.json

Optimize steps structure for synchronizing the content of composer.json file during the merge process

* Update merge.yaml

* Update merge.yaml

* Update merge.yaml

* Update merge.yaml
  • Loading branch information
hxdef committed Jul 5, 2022
1 parent 37083c9 commit a998ded
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
39 changes: 37 additions & 2 deletions .github/workflows/merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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:
Expand All @@ -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')
13 changes: 13 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "citation-style-language/styles",
"description": "Citation Style Language (CSL) Styless",
"type": "library",
"license": "CC-BY-SA-3.0",
"homepage": "http://citationstyles.org/",
"authors": [
{
"name": "Citation Style Language (CSL) Team",
"homepage": "http://citationstyles.org/about/#Credits"
}
]
}
1 change: 1 addition & 0 deletions spec/filters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ EXTRA_FILES:
- STYLE_DEVELOPMENT.md
- STYLE_REQUIREMENTS.md
- QUALITY_CONTROL.md
- composer.json

# These directories and their contents are ignored when checking for extra files
EXTRA_FILES_DIRECTORY:
Expand Down

0 comments on commit a998ded

Please sign in to comment.