-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Simplify CFF Update Workflow (#726)
* 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
1 parent
637c562
commit 6f43ada
Showing
6 changed files
with
20 additions
and
147 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|
14 changes: 14 additions & 0 deletions
14
changelog.d/20230919_195046_GitHub_Actions_simplify-cff-update-workflow.ron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
], | ||
}, | ||
) |