Clone curh-shemas
This commit is contained in:
parent
843ac08b30
commit
67fe27c791
35
.github/workflows/maven-publish.yml
vendored
35
.github/workflows/maven-publish.yml
vendored
@ -24,6 +24,19 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Checkout tools repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: curh-backend/curh-schemas
|
||||
path: curh-schemas
|
||||
ref: ${{ github.ref }}
|
||||
|
||||
- name: Unpack curh schemas
|
||||
run: |
|
||||
cd curh-schemas/src/main/resources
|
||||
mkdir -p /opt/rizik
|
||||
cp -R xsd/ /opt/rizik/
|
||||
|
||||
- name: Set up Maven
|
||||
uses: stCarolas/setup-maven@v5
|
||||
with:
|
||||
@ -42,28 +55,6 @@ jobs:
|
||||
java-version: '21'
|
||||
distribution: 'corretto'
|
||||
|
||||
- name: Config git and ssh
|
||||
run: |
|
||||
git config --global user.email "gitea@pravilanovait.hr"
|
||||
git config --global user.name "Gitea Actions"
|
||||
echo -e "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chown 600 ~/.ssh/id_rsa
|
||||
touch ~/.ssh/known_hosts
|
||||
ssh-keygen -R devops.pravilanovait.hr
|
||||
ssh-keyscan -t rsa devops.pravilanovait.hr > ~/.ssh/known_hosts
|
||||
|
||||
- name: Clone curh schemas
|
||||
run: |
|
||||
git clone git@devops.pravilanovait.hr:curh-backend/curh-schemas.git
|
||||
cd curh-schemas
|
||||
git checkout $BRANCH
|
||||
cd src/main/resources
|
||||
mkdir -p /opt/rizik
|
||||
cp -R xsd/ /opt/rizik/
|
||||
env:
|
||||
BRANCH: ${{ github.ref }}
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Set up JDK from ENV
|
||||
if: github.ref != 'refs/heads/feature/T2900-java21' && github.ref != 'refs/heads/feature/T2900-java-21'
|
||||
uses: actions/setup-java@v4
|
||||
|
Loading…
x
Reference in New Issue
Block a user