mirror of
https://github.com/LukeHagar/Anchor.git
synced 2025-12-09 20:37:48 +00:00
Updating workflow
This commit is contained in:
12
.github/workflows/build.yaml
vendored
12
.github/workflows/build.yaml
vendored
@@ -6,13 +6,18 @@ jobs:
|
|||||||
Build-And-Push:
|
Build-And-Push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Extract branch name
|
||||||
|
shell: bash
|
||||||
|
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
|
||||||
|
id: extract_branch
|
||||||
|
|
||||||
# Checkout the main branch of this repo
|
# Checkout the main branch of this repo
|
||||||
- name: Checkout PR branch
|
- name: Checkout PR branch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: lukehagar/anchor
|
repository: lukehagar/anchor
|
||||||
path: anchor
|
path: anchor
|
||||||
ref: main
|
ref: ${{ steps.extract_branch.outputs.branch }}
|
||||||
|
|
||||||
# Checkout the main branch of api-specs
|
# Checkout the main branch of api-specs
|
||||||
- name: Checkout API Specs Repo
|
- name: Checkout API Specs Repo
|
||||||
@@ -54,11 +59,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
swagger-cli bundle --dereference api-specs/idn/sailpoint-api.cc.yaml -t json -o anchor/src/routes/api-client/CCSpec.json
|
swagger-cli bundle --dereference api-specs/idn/sailpoint-api.cc.yaml -t json -o anchor/src/routes/api-client/CCSpec.json
|
||||||
|
|
||||||
- name: Extract branch name
|
|
||||||
shell: bash
|
|
||||||
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
|
|
||||||
id: extract_branch
|
|
||||||
|
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
repository: anchor/
|
repository: anchor/
|
||||||
|
|||||||
Reference in New Issue
Block a user