Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit a3c727e

Browse files
committed
chore: Fix typo in bash algo
1 parent e3ae9c2 commit a3c727e

File tree

1 file changed

+64
-63
lines changed

1 file changed

+64
-63
lines changed

Diff for: .github/workflows/nightly-build.yml

+64-63
Original file line numberDiff line numberDiff line change
@@ -11,83 +11,84 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Checkout Repository
15-
uses: actions/checkout@v4
16-
with:
17-
ref: development
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
with:
17+
ref: development
1818

19-
- name: Set up JDK 11
20-
uses: actions/setup-java@v4
21-
with:
22-
distribution: 'temurin'
23-
java-version: '11'
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: 'temurin'
23+
java-version: '11'
2424

25-
- name: Build with Maven
26-
run: mvn clean install
25+
- name: Build with Maven
26+
run: mvn clean install
2727

28-
- name: Rename Artifacts
29-
run: |
30-
short_commit=$(git rev-parse --short HEAD)
31-
mv $(find ./corese-core/target/ -name 'corese-core-*-jar-with-dependencies.jar') ./corese-core/target/corese-core-${short_commit}-nightly.jar
32-
mv $(find ./corese-command/target/ -name 'corese-command-*.jar') ./corese-command/target/corese-command-${short_commit}-nightly.jar
33-
mv $(find ./corese-gui/target/ -name 'corese-gui-*.jar') ./corese-gui/target/corese-gui-${short_commit}-nightly.jar
34-
mv $(find ./corese-jena/target/ -name 'corese-jena-*.jar') ./corese-jena/target/corese-jena-${short_commit}-nightly.jar
35-
mv $(find ./corese-rdf4j/target/ -name 'corese-rdf4j-*.jar') ./corese-rdf4j/target/corese-rdf4j-${short_commit}-nightly.jar
36-
mv $(find ./corese-server/target/ -name 'corese-server-*.jar') ./corese-server/target/corese-server-${short_commit}-nightly.jar
28+
- name: Rename Artifacts
29+
run: |
30+
short_commit=$(git rev-parse --short HEAD)
31+
mv $(find ./corese-core/target/ -name 'corese-core-*-jar-with-dependencies.jar') ./corese-core/target/corese-core-${short_commit}-nightly.jar
32+
mv $(find ./corese-command/target/ -name 'corese-command-*.jar') ./corese-command/target/corese-command-${short_commit}-nightly.jar
33+
mv $(find ./corese-gui/target/ -name 'corese-gui-*.jar') ./corese-gui/target/corese-gui-${short_commit}-nightly.jar
34+
mv $(find ./corese-jena/target/ -name 'corese-jena-*.jar') ./corese-jena/target/corese-jena-${short_commit}-nightly.jar
35+
mv $(find ./corese-rdf4j/target/ -name 'corese-rdf4j-*.jar') ./corese-rdf4j/target/corese-rdf4j-${short_commit}-nightly.jar
36+
mv $(find ./corese-server/target/ -name 'corese-server-*.jar') ./corese-server/target/corese-server-${short_commit}-nightly.jar
3737
38-
- name: Upload Build Artifacts
39-
uses: actions/upload-artifact@v4
40-
with:
41-
name: nightly-build
42-
path: |
43-
./corese-core/target/corese-core-*-nightly.jar
44-
./corese-command/target/corese-command-*-nightly.jar
45-
./corese-gui/target/corese-gui-*-nightly.jar
46-
./corese-jena/target/corese-jena-*-nightly.jar
47-
./corese-rdf4j/target/corese-rdf4j-*-nightly.jar
48-
./corese-server/target/corese-server-*-nightly.jar
38+
- name: Upload Build Artifacts
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: nightly-build
42+
path: |
43+
./corese-core/target/corese-core-*-nightly.jar
44+
./corese-command/target/corese-command-*-nightly.jar
45+
./corese-gui/target/corese-gui-*-nightly.jar
46+
./corese-jena/target/corese-jena-*-nightly.jar
47+
./corese-rdf4j/target/corese-rdf4j-*-nightly.jar
48+
./corese-server/target/corese-server-*-nightly.jar
4949
5050
delete_previous_prerelease:
5151
runs-on: ubuntu-latest
5252
needs: build
5353
steps:
54-
- name: Checkout Repository
55-
uses: actions/checkout@v4
56-
with:
57-
ref: development
54+
- name: Checkout Repository
55+
uses: actions/checkout@v4
56+
with:
57+
ref: development
5858

59-
- name: Delete previous nightly tag
60-
run: |
61-
latest_nightly_tag=$(gh release list --limit 1 --exclude-drafts --json tagName,isPrerelease -q '.[] | select(.isPrerelease) | .tagName')
62-
if [ -n "$latest_nightly_tag" ]; then
63-
gh release delete "$latest_nightly_tag" -y
64-
gh api --method DELETE "/repos/${{ github.repository }}/git/refs/tags/$latest_nightly_tag"
65-
else
66-
echo "No previous nightly tag found."
67-
env:
68-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
- name: Delete previous nightly tag
60+
run: |
61+
latest_nightly_tag=$(gh release list --limit 1 --exclude-drafts --json tagName,isPrerelease -q '.[] | select(.isPrerelease) | .tagName')
62+
if [ -n "$latest_nightly_tag" ]; then
63+
gh release delete "$latest_nightly_tag" -y
64+
gh api --method DELETE "/repos/${{ github.repository }}/git/refs/tags/$latest_nightly_tag"
65+
else
66+
echo "No previous nightly tag found."
67+
fi
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6970

7071
create_prerelease:
7172
runs-on: ubuntu-latest
7273
needs: delete_previous_prerelease
7374
steps:
74-
- name: Checkout Repository
75-
uses: actions/checkout@v4
76-
with:
77-
ref: development
75+
- name: Checkout Repository
76+
uses: actions/checkout@v4
77+
with:
78+
ref: development
7879

79-
- name: Download Build Artifacts
80-
uses: actions/download-artifact@v4
81-
with:
82-
name: nightly-build
83-
path: ./artifacts
80+
- name: Download Build Artifacts
81+
uses: actions/download-artifact@v4
82+
with:
83+
name: nightly-build
84+
path: ./artifacts
8485

85-
- name: Create new prerelease
86-
run: |
87-
short_commit=$(git rev-parse --short HEAD)
88-
date=$(date +'%Y%m%d')
89-
tag_name="nightly-${date}-${short_commit}"
90-
gh release create "$tag_name" -p -t "Nightly Build ${short_commit}" -n "This is an automated nightly build. It is a development version and not stable." --target development
91-
gh release upload "$tag_name" ./artifacts/corese-core-${short_commit}-nightly.jar ./artifacts/corese-command-${short_commit}-nightly.jar ./artifacts/corese-gui-${short_commit}-nightly.jar ./artifacts/corese-jena-${short_commit}-nightly.jar ./artifacts/corese-rdf4j-${short_commit}-nightly.jar ./artifacts/corese-server-${short_commit}-nightly.jar
92-
env:
93-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
- name: Create new prerelease
87+
run: |
88+
short_commit=$(git rev-parse --short HEAD)
89+
date=$(date +'%Y%m%d')
90+
tag_name="nightly-${date}-${short_commit}"
91+
gh release create "$tag_name" -p -t "Nightly Build ${short_commit}" -n "This is an automated nightly build. It is a development version and not stable." --target development
92+
gh release upload "$tag_name" ./artifacts/corese-core-${short_commit}-nightly.jar ./artifacts/corese-command-${short_commit}-nightly.jar ./artifacts/corese-gui-${short_commit}-nightly.jar ./artifacts/corese-jena-${short_commit}-nightly.jar ./artifacts/corese-rdf4j-${short_commit}-nightly.jar ./artifacts/corese-server-${short_commit}-nightly.jar
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)