animated-cube/.github/workflows/test.yaml

17 lines
396 B
YAML
Raw Normal View History

2023-08-06 19:20:12 -04:00
name: Workflow Test
on: push
jobs:
2023-08-06 19:21:10 -04:00
first:
name: Step One
runs-on: ubuntu-latest
2023-08-06 20:19:41 -04:00
container: alpine/git
2023-08-06 19:21:10 -04:00
steps:
2023-08-06 20:17:27 -04:00
- run: echo "$GITHUB_SERVER_URL"
2023-08-06 20:19:41 -04:00
- run: |
URL=$(echo "$GITHUB_SERVER_URL" | sed 's%://%$GITHUB_TOKEN@://%')
2023-08-06 20:20:39 -04:00
echo "$URL/$GITHUB_REPOSITORY.git"
2023-08-06 20:19:41 -04:00
git clone "$URL/$GITHUB_REPOSITORY.git"
git switch $GITHUB_REF
- run: ls