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

Commit e8e9e2f

Browse files
committed
Corrected default workflow directory and syntax
1 parent 42001a6 commit e8e9e2f

File tree

3 files changed

+97
-25
lines changed

3 files changed

+97
-25
lines changed

.github/default.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/default.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: iapetus - default
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
schedule:
8+
- cron: "0 6 * * 1" # At 03:00 on Monday
9+
workflow_dispatch:
10+
11+
jobs:
12+
build-snapshot:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Prepare Maven Cache
21+
uses: actions/cache@v4
22+
with:
23+
path: ~/.m2/repository
24+
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', '*/pom.xml') }}
25+
restore-keys: |
26+
${{ runner.os }}-maven-
27+
28+
- name: Setup JDK
29+
uses: actions/setup-java@v4
30+
with:
31+
java-version: 11
32+
distribution: corretto
33+
34+
- name: Build POM
35+
run: mvn package -B
36+
37+
notify-slack:
38+
needs: build-snapshot
39+
if: always()
40+
runs-on: ubuntu-22.04
41+
steps:
42+
- name: Notify Slack
43+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
44+
uses: iRoachie/slack-github-actions@v2.3.2
45+
env:
46+
SLACK_WEBHOOK_URL: ${{ vars.SLACK_WEBHOOK_URL }}
47+
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: iapetus - release
2+
3+
on:
4+
release:
5+
types: [ created ]
6+
7+
jobs:
8+
build-release:
9+
uses: linked-planet/github-workflows/.github/workflows/build-release.yml@v6
10+
with:
11+
branch: ${{ github.event.repository.default_branch }}
12+
secrets:
13+
gh_user: ${{ vars.GH_USER }}
14+
15+
perform-release:
16+
needs:
17+
- build-release
18+
permissions:
19+
contents: write
20+
packages: write
21+
uses: linked-planet/github-workflows/.github/workflows/perform-release.yml@v6
22+
with:
23+
branch: ${{ github.event.repository.default_branch }}
24+
version: ${{ needs.build-release.outputs.version }}
25+
secrets:
26+
gh_user: ${{ vars.GH_USER }}
27+
28+
rollback-release:
29+
if: cancelled() || failure()
30+
permissions:
31+
contents: write
32+
needs:
33+
- build-release
34+
- perform-release
35+
uses: linked-planet/github-workflows/.github/workflows/rollback-release.yml@v6
36+
with:
37+
branch: ${{ github.event.repository.default_branch }}
38+
secrets:
39+
gh_user: ${{ vars.GH_USER }}
40+
41+
notify-slack:
42+
needs: rollback-release
43+
if: always()
44+
runs-on: ubuntu-22.04
45+
steps:
46+
- name: Notify Slack
47+
uses: iRoachie/slack-github-actions@v2.3.2
48+
env:
49+
SLACK_WEBHOOK_URL: ${{ vars.SLACK_WEBHOOK_URL }}
50+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)