mirror of
https://github.com/LukeHagar/Anchor.git
synced 2025-12-09 12:27:47 +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:
|
||||
runs-on: ubuntu-latest
|
||||
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
|
||||
- name: Checkout PR branch
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: lukehagar/anchor
|
||||
path: anchor
|
||||
ref: main
|
||||
ref: ${{ steps.extract_branch.outputs.branch }}
|
||||
|
||||
# Checkout the main branch of api-specs
|
||||
- name: Checkout API Specs Repo
|
||||
@@ -54,11 +59,6 @@ jobs:
|
||||
run: |
|
||||
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
|
||||
with:
|
||||
repository: anchor/
|
||||
|
||||
Reference in New Issue
Block a user