Skip to content

Commit

Permalink
need shell for each step
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlancaster committed Nov 13, 2024
1 parent 9b35134 commit eebd3e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/update_citations/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ inputs:

runs:
using: "composite"
shell: bash # This is the default shell for all steps
steps:
- name: Extract citation formats
id: extract_formats
Expand All @@ -26,10 +25,12 @@ runs:
with open("${{ steps.extract_formats.outputs.formats_file }}", "w") as f:
f.write(formats)
'
shell: bash

- name: Copy CITATION.cff to citation directory
run: |
cp CITATION.cff ${{ inputs.CITATION_DIR }}/CITATION.cff
shell: bash

- name: Generate citation files
run: |
Expand All @@ -38,6 +39,7 @@ runs:
for format in "${formats_array[@]}"; do
cffconvert --infile CITATION.cff --outfile "${{ inputs.CITATION_DIR }}/citation.${format}" --format "$format"
done
shell: bash

- name: Commit and push changes
uses: EndBug/add-and-commit@v9
Expand Down

0 comments on commit eebd3e6

Please sign in to comment.