Merge branch 'am/ci-wsfix'
Aesthetic fix to a CI configuration file. * am/ci-wsfix: ci: fix inconsistent indentationmaint
commit
1a753720c3
|
@ -7,34 +7,34 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci-config:
|
ci-config:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
enabled: ${{ steps.check-ref.outputs.enabled }}
|
enabled: ${{ steps.check-ref.outputs.enabled }}
|
||||||
steps:
|
steps:
|
||||||
- name: try to clone ci-config branch
|
- name: try to clone ci-config branch
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
git -c protocol.version=2 clone \
|
git -c protocol.version=2 clone \
|
||||||
--no-tags \
|
--no-tags \
|
||||||
--single-branch \
|
--single-branch \
|
||||||
-b ci-config \
|
-b ci-config \
|
||||||
--depth 1 \
|
--depth 1 \
|
||||||
--no-checkout \
|
--no-checkout \
|
||||||
--filter=blob:none \
|
--filter=blob:none \
|
||||||
https://github.com/${{ github.repository }} \
|
https://github.com/${{ github.repository }} \
|
||||||
config-repo &&
|
config-repo &&
|
||||||
cd config-repo &&
|
cd config-repo &&
|
||||||
git checkout HEAD -- ci/config
|
git checkout HEAD -- ci/config
|
||||||
- id: check-ref
|
- id: check-ref
|
||||||
name: check whether CI is enabled for ref
|
name: check whether CI is enabled for ref
|
||||||
run: |
|
run: |
|
||||||
enabled=yes
|
enabled=yes
|
||||||
if test -x config-repo/ci/config/allow-ref &&
|
if test -x config-repo/ci/config/allow-ref &&
|
||||||
! config-repo/ci/config/allow-ref '${{ github.ref }}'
|
! config-repo/ci/config/allow-ref '${{ github.ref }}'
|
||||||
then
|
then
|
||||||
enabled=no
|
enabled=no
|
||||||
fi
|
fi
|
||||||
echo "::set-output name=enabled::$enabled"
|
echo "::set-output name=enabled::$enabled"
|
||||||
|
|
||||||
windows-build:
|
windows-build:
|
||||||
needs: ci-config
|
needs: ci-config
|
||||||
|
|
Loading…
Reference in New Issue