Skip to content

Commit

Permalink
[Enhancement] Simplify CFF Update Workflow (#726)
Browse files Browse the repository at this point in the history
* Changed ::= CI:  simplify CFF update workflow

* Removed ::= .github/CFF/chrono.yml

* Removed ::= .github/CFF/citation-file-format.yml

* Removed ::= .github/CFF/clap.yml

* Removed ::= .github/CFF/sysexits.yml

* Create summary of recent changes

---------

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
kevinmatthes and github-actions[bot] committed Sep 19, 2023
1 parent 637c562 commit 6f43ada
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 147 deletions.
27 changes: 0 additions & 27 deletions .github/CFF/chrono.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/CFF/citation-file-format.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/CFF/clap.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/CFF/sysexits.yml

This file was deleted.

38 changes: 6 additions & 32 deletions .github/workflows/cff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,41 +52,15 @@ jobs:
steps:
- uses: actions/[email protected]
- uses: fregante/[email protected]
- run: rustup update

- run: |
curl \
https://raw.githubusercontent.com/chronotope/chrono/main/CITATION.cff \
| cargo r -- cffreference > .github/CFF/chrono.yml
git add .github/CFF/chrono.yml
git commit --allow-empty -m \
'[GitHub Actions] Update CFF Entry for chrono'
- run: |
curl \
https://raw.githubusercontent.com/clap-rs/clap/master/CITATION.cff \
| cargo r -- cffreference > .github/CFF/clap.yml
git add .github/CFF/clap.yml
git commit --allow-empty -m \
'[GitHub Actions] Update CFF Entry for Clap'
- run: |
curl \
https://raw.githubusercontent.com/sorairolake/sysexits-rs/develop/CITATION.cff \
| cargo r -- cffreference > .github/CFF/sysexits.yml
git add .github/CFF/sysexits.yml
git commit --allow-empty -m \
'[GitHub Actions] Update CFF Entry for sysexits-rs'

- run: |
rustup update
cat .github/CFF/aeruginous.cff > CITATION.cff
{
echo references: ;
cat .github/CFF/chrono.yml \
.github/CFF/citation-file-format.yml \
.github/CFF/clap.yml \
.github/CFF/sysexits.yml ;
} >> CITATION.cff
echo references: >> CITATION.cff
curl https://raw.githubusercontent.com/chronotope/chrono/main/CITATION.cff | cargo r -- cffreference -o CITATION.cff
curl https://raw.githubusercontent.com/citation-file-format/citation-file-format/main/CITATION.cff | cargo r -- cffreference -o CITATION.cff
curl https://raw.githubusercontent.com/clap-rs/clap/master/CITATION.cff | cargo r -- cffreference -o CITATION.cff
curl https://raw.githubusercontent.com/sorairolake/sysexits-rs/develop/CITATION.cff | cargo r -- cffreference -o CITATION.cff
git add .
git commit --allow-empty -m '[GitHub Actions] Assemble CITATION.cff'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
(
references: {},
changes: {
"Changed": [
"CI: simplify CFF update workflow",
],
"Removed": [
".github/CFF/sysexits.yml",
".github/CFF/clap.yml",
".github/CFF/citation-file-format.yml",
".github/CFF/chrono.yml",
],
},
)

0 comments on commit 6f43ada

Please sign in to comment.