mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 23:33:37 +00:00
.github: simplify checkout process
We don't need separate steps for manual and automatic checkout, the default ref value can be habdled by checkout@v2 itself.
This commit is contained in:
parent
4a410f4898
commit
70d00a6f98
1 changed files with 4 additions and 40 deletions
44
.github/workflows/publish_to_dockerhub.yml
vendored
44
.github/workflows/publish_to_dockerhub.yml
vendored
|
@ -34,21 +34,12 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout (manual run)
|
- uses: actions/checkout@v2
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref }}
|
ref: ${{ github.event.inputs.ref }}
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Checkout (automatical run)
|
|
||||||
if: ${{ github.event_name != 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Sync VM submodule
|
- name: Sync VM submodule
|
||||||
run: |
|
run: |
|
||||||
git submodule sync
|
git submodule sync
|
||||||
|
@ -76,21 +67,12 @@ jobs:
|
||||||
name: Publish Ubuntu-based image to DockerHub
|
name: Publish Ubuntu-based image to DockerHub
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout (manual run)
|
- uses: actions/checkout@v2
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref }}
|
ref: ${{ github.event.inputs.ref }}
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Checkout (automatical run)
|
|
||||||
if: ${{ github.event_name != 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: make image
|
run: make image
|
||||||
|
|
||||||
|
@ -117,21 +99,12 @@ jobs:
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout (manual run)
|
- uses: actions/checkout@v2
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref }}
|
ref: ${{ github.event.inputs.ref }}
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Checkout (automatical run)
|
|
||||||
if: ${{ github.event_name != 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Sync VM submodule
|
- name: Sync VM submodule
|
||||||
run: |
|
run: |
|
||||||
git submodule sync
|
git submodule sync
|
||||||
|
@ -162,21 +135,12 @@ jobs:
|
||||||
name: Publish WindowsServerCore-based image to DockerHub
|
name: Publish WindowsServerCore-based image to DockerHub
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout (manual run)
|
- uses: actions/checkout@v2
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref }}
|
ref: ${{ github.event.inputs.ref }}
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Checkout (automatical run)
|
|
||||||
if: ${{ github.event_name != 'workflow_dispatch' }}
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
# Allows to fetch all history for all branches and tags. Need this for proper versioning.
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: make image-wsc
|
run: make image-wsc
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue