mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-25 23:06:08 -05:00
CI: Remove obsolete checkout for old docs repo
This commit is contained in:
parent
9c8ba7b153
commit
9a560847f7
15
.github/workflows/update-cli-reference.yml
vendored
15
.github/workflows/update-cli-reference.yml
vendored
@ -15,15 +15,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Constellation
|
- name: Checkout Constellation
|
||||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
||||||
with:
|
|
||||||
path: constellation
|
|
||||||
|
|
||||||
- name: Checkout docs
|
|
||||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
||||||
with:
|
|
||||||
repository: edgelesssys/constellation-docs
|
|
||||||
token: ${{ secrets.CI_GITHUB_REPOSITORY }}
|
|
||||||
path: docs
|
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
||||||
@ -32,10 +23,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate reference docs
|
- name: Generate reference docs
|
||||||
run: |
|
run: |
|
||||||
cd constellation/hack/clidocgen
|
cd hack/clidocgen
|
||||||
go build .
|
go build .
|
||||||
./clidocgen > content.md
|
./clidocgen > content.md
|
||||||
cat header.md content.md > ../../../cli.md
|
cat header.md content.md > ../../cli.md
|
||||||
|
|
||||||
- name: Get commit sha
|
- name: Get commit sha
|
||||||
run: |
|
run: |
|
||||||
@ -43,7 +34,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Check if action branch exists
|
- name: Check if action branch exists
|
||||||
run: |
|
run: |
|
||||||
ex=$(git --git-dir=./docs/.git ls-remote --heads origin action/constellation/update-cli-reference)
|
ex=$(git ls-remote --heads origin action/constellation/update-cli-reference)
|
||||||
echo "EXISTS=$(if [ -z "$ex" ]; then echo 0; else echo 1; fi)" >> $GITHUB_ENV
|
echo "EXISTS=$(if [ -z "$ex" ]; then echo 0; else echo 1; fi)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Publish new reference (create new branch)
|
- name: Publish new reference (create new branch)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user