Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ThreeDeeJay authored Aug 10, 2024
1 parent 8f7bb1d commit 0767f78
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ on:
workflow_dispatch:

env:
DSOALBranch: ${GITHUB_HEAD}}
DSOALBranch: ${GITHUB_HEAD_REF}}
DSOALBranch: ${GITHUB_REF}}
DSOALBranch: ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
DSOALBranch: ${GITHUB_HEAD:-${GITHUB_REF#refs/heads/}}
DSOALBranch: ${GITHUB_REF:-${GITHUB_REF#refs/heads/}}
DSOALBranch: ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
DSOALBranch: ${GITHUB_HEAD_REF:-${GITHUB_HEAD#refs/heads/}}
DSOALBranch: ${GITHUB_HEAD_REF:-${GITHUB_HEAD_REF#refs/heads/}}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -25,14 +33,10 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

# Runs a single command using the runners shell
- name: Run a one-line script
run: git clone --branch ${{env.DSOALBranch}} https://github.com/${{env.DSOALRepo}}.git .


# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo A
echo B
echo 1 git clone --branch ${{env.DSOALBranch}} https://github.com/${{env.DSOALRepo}}.git .

0 comments on commit 0767f78

Please sign in to comment.