Skip to content

Instantly share code, notes, and snippets.

@joonvena
Created April 17, 2020 11:15
Show Gist options
  • Save joonvena/b39e2949d955c909ea01297f51938f0b to your computer and use it in GitHub Desktop.
Save joonvena/b39e2949d955c909ea01297f51938f0b to your computer and use it in GitHub Desktop.
generate_report:
if: always()
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Download reports
uses: actions/download-artifact@v1
with:
name: reports
- name: Get Repository Owner & Name
run: |
export OWNER="$(echo "${{ github.repository }}" | awk -F / '{print $1}' | sed -e "s/:refs//")"
export REPO="$(echo "${{ github.repository }}" | awk -F / '{print $2}' | sed -e "s/:refs//")"
echo "::set-env name=REPOSITORY_OWNER::$OWNER"
echo "::set-env name=REPOSITORY_NAME::$REPO"
- name: Send report to commit
uses: joonvena/[email protected]
env:
GH_ACCESS_TOKEN: ${{ secrets.TOKEN }}
REPO_OWNER: ${{ env.REPOSITORY_OWNER }}
COMMIT_SHA: ${{ github.sha }}
REPOSITORY: ${{ env.REPOSITORY_NAME }}
REPORT_PATH: reports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment