Skip to content

Commit

Permalink
test: updates CI without any modifications
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <[email protected]>
  • Loading branch information
kbdharun committed May 3, 2024
1 parent 2a3244d commit 40434b2
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,54 @@ jobs:
echo "Next"
ls -ls scripts/pdf
- uses: actions/attest-build-provenance@v1
- name: Check if Zip files exist
id: check-zip
run: |
if [[ $(find language_archives -name "*.zip" | wc -l) -gt 0 ]]; then
echo "::set-output name=exists::true"
else
echo "::set-output name=exists::false"
fi
shell: bash

- name: Attest Zip files
if: steps.check-zip.outputs.exists == 'true'
uses: actions/attest-build-provenance@v1
with:
subject-path: 'language_archives/**/*.zip'

- name: Check if PDF files exist
id: check-pdf
run: |
if [[ $(find scripts/pdf -name "*.pdf" | wc -l) -gt 0 ]]; then
echo "::set-output name=exists::true"
else
echo "::set-output name=exists::false"
fi
shell: bash

- name: Attest PDF files
if: steps.check-pdf.outputs.exists == 'true'
uses: actions/attest-build-provenance@v1
with:
subject-path: 'scripts/pdf/**/*.pdf'

- name: Check if Checksums file exists
id: check-checksums
run: |
if [[ -f "tldr.sha256sums" ]]; then
echo "::set-output name=exists::true"
else
echo "::set-output name=exists::false"
fi
shell: bash

- name: Attest Checksums file
if: steps.check-checksums.outputs.exists == 'true'
uses: actions/attest-build-provenance@v1
with:
subject-path: 'tldr.sha256sums'

- name: Deploy
run: bash scripts/deploy.sh
env:
Expand Down

0 comments on commit 40434b2

Please sign in to comment.