Skip to content

Commit

Permalink
Update checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
vintagepc committed Nov 6, 2022
1 parent 777a9c3 commit 347bf8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout ${{ github.event.pull_request.head.ref }}
uses: actions/checkout@v2.5.0
uses: actions/checkout@v3
if: ${{ github.event.pull_request }}
with:
repository: ${{ github.repository }}
ref: ${{ github.event.pull_request.head.sha }}
submodules: false

- name: Checkout ${{ github.event.ref }}
uses: actions/checkout@v2.5.0
uses: actions/checkout@v3
if: ${{ !github.event.pull_request }}
with:
repository: ${{ github.repository }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
run: cd ${{ runner.workspace }}/MINI404 && make -j3

- name: Checkout Wiki
uses: actions/checkout@v2.5.0
uses: actions/checkout@v3
if: ${{ !github.event.pull_request }}
with:
repository: vintagepc/MINI404.wiki.git
Expand Down Expand Up @@ -105,15 +105,15 @@ jobs:
steps:
# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout ${{ github.event.pull_request.head.ref }}
uses: actions/checkout@v2.5.0
uses: actions/checkout@v3
if: ${{ github.event.pull_request }}
with:
repository: ${{ github.repository }}
ref: ${{ github.event.pull_request.head.sha }}
submodules: true

- name: Checkout ${{ github.event.ref }}
uses: actions/checkout@v2.5.0
uses: actions/checkout@v3
if: ${{ !github.event.pull_request }}
with:
repository: ${{ github.repository }}
Expand Down Expand Up @@ -147,8 +147,7 @@ jobs:

build_msys:
# The type of runner that the job will run on
runs-on: windows-2019
if: "!contains(github.event.head_commit.message, 'NO_BUILD')"
runs-on: windows-latest
steps:
- name: Install MSYS2
uses: msys2/setup-msys2@v2
Expand All @@ -160,15 +159,15 @@ jobs:
run: git config --global core.autocrlf false

- name: Checkout ${{ github.event.pull_request.head.ref }}
uses: actions/checkout@v2.5.0
uses: actions/checkout@v3
if: ${{ github.event.pull_request }}
with:
repository: ${{ github.repository }}
ref: ${{ github.event.pull_request.head.sha }}
submodules: false

- name: Checkout ${{ github.event.ref }}
uses: actions/checkout@v2.5.0
uses: actions/checkout@v3
if: ${{ !github.event.pull_request }}
with:
repository: ${{ github.repository }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout ${{ github.event.pull_request.head.ref }}
uses: actions/checkout@v2.5.0
uses: actions/checkout@v3
if: ${{ github.event.pull_request }}
with:
repository: vintagepc/MINI404.git
ref: ${{ github.event.pull_request.head.sha }}
submodules: false

- name: Checkout ${{ github.event.ref }}
uses: actions/checkout@v2.5.0
uses: actions/checkout@v3
if: ${{ !github.event.pull_request }}
with:
repository: vintagepc/MINI404.git
Expand Down

0 comments on commit 347bf8a

Please sign in to comment.