Created
April 17, 2020 11:15
-
-
Save joonvena/b39e2949d955c909ea01297f51938f0b to your computer and use it in GitHub Desktop.
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
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