Skip to content

Commit 1ab34b6

Browse files
committed
Patch Apache Atlas if necessary
1 parent 3de587f commit 1ab34b6

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.github/workflows/compile-release.yml

+13
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141
runs-on: ubuntu-latest
4242
needs: discover-new-releases
4343
steps:
44+
- name: Checkout
45+
uses: actions/[email protected]
46+
with:
47+
path: apache-atlas-compiled
48+
4449
- name: Download Apache Atlas ${{ matrix.version }}
4550
id: download-atlas
4651
run: |
@@ -51,6 +56,14 @@ jobs:
5156
gpg --verify apache-atlas.tar.gz.asc apache-atlas.tar.gz
5257
tar zxf apache-atlas.tar.gz
5358
59+
- name: Patch Apache Atlas ${{ matrix.version }}
60+
id: patch-atlas
61+
run: |
62+
ls -la
63+
if [[ -f "apache-atlas-compiled/patches/${{ matrix.version }}.sh" ]]; then
64+
apache-atlas-compiled/patches/${{ matrix.version }}.sh "$(pwd)/apache-atlas-sources-${{ matrix.version }}"
65+
fi
66+
5467
- name: Set up JDK 1.8
5568
uses: actions/[email protected]
5669
with:

patches/2.3.0.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -euxo pipefail
4+
5+
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6+
7+
ATLAS_PATH=$1
8+
9+
patch --verbose "${ATLAS_PATH}/pom.xml" "${CURRENT_DIR}/2.3.0/pom.xml.patch"

patches/2.3.0/pom.xml.patch

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
888a889,893
2+
> <repository>
3+
> <id>maven-restlet</id>
4+
> <name>Public online Restlet repository</name>
5+
> <url>https://maven.restlet.talend.com/</url>
6+
> </repository>

0 commit comments

Comments
 (0)