This repository has been archived by the owner on May 29, 2024. It is now read-only.
Address warnings with save-state #97
Workflow file for this run
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
name: 'Functional Test' | |
on: | |
push: | |
branches: | |
master | |
pull_request: | |
branches: | |
master | |
jobs: | |
test-defaults: | |
name: Test Defaults (Repo, Ref) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo Locally | |
uses: verily-src/actions-checkout@master | |
with: | |
path: actions-checkout | |
- name: Checkout Repo | |
uses: ./actions-checkout | |
with: | |
path: test-checkout | |
- id: defaults | |
working-directory: test-checkout | |
run: | | |
echo "::set-output name=sha::$(git show HEAD --pretty=format:%H --no-patch)" | |
echo "::set-output name=repo::$(git remote get-url origin | grep -oE [a-zA-Z0-9]+/[a-zA-Z0-9]+$)" | |
- name: Check Repo | |
working-directory: test-checkout | |
if: ${{ github.repo != steps.defaults.outputs.repo }} | |
run: failure() | |
- name: Check Ref | |
working-directory: test-checkout | |
if: ${{ github.sha != steps.defaults.outputs.sha }} | |
run: failure() |