Repository navigation
Releases
Releases · digitalservicebund/add-ris-report
v2.0.3
v2.0.2
Fix missing file extension for single-file reports
v2.0.1
Speed up upload when uploading many files
v2.0.0
Use an S3 bucket instead of a git repo to store the reports.
To update you need to add secrets for the bucket access to the repo. You can remove the previously needed step to create a commit in the reports repo. You can also remove the deploy key for the reports repo from your secrets
- # Setup
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- with:
- repository: ${{ env.REPORTS_REPOSITORY }}
- ssh-key: ${{ secrets.REPORTS_DEPLOY_KEY }}
- - name: Setup git config
- run: |
- git config user.name "${{ github.repository }}"
- # This email identifies the commit as GitHub Actions - see https://github.com/orgs/community/discussions/26560
- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Frontend license report - git add report
+ uses: digitalservicebund/add-ris-report@e27536b108fb812d2c7e6932baef75e5164b44b4
- uses: digitalservicebund/add-ris-report@c6c8735d23295c36a271c75e7dedc9b6b9a9ef5e
with:
filePath: tmp/license-reports/license-report.csv
destinationDir: licence-reports/frontend/ris-cm
+ BUCKET_ACCESS_KEY_ID: ${{ secrets.REPORTS_BUCKET_ACCESS_KEY_ID }}
+ BUCKET_SECRET_ACCESS_KEY: ${{ secrets.REPORTS_BUCKET_SECRET_ACCESS_KEY }}
- - name: Push reports
- # we use `toJSON(...)` below to escape double quotation marks
- run: |
- git diff-index --cached --quiet HEAD ||
- git commit \
- -m "Update from ${{ github.repository }}" \
- -m "From commit: ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}" &&
- git push origin main &&
- echo "Pushed reports to ${{ github.server_url }}/${{ env.REPORTS_REPOSITORY }}" >> $GITHUB_STEP_SUMMARYv1.0.0
- Move code from https://github.com/digitalservicebund/github-actions/