Skip to content

Commit af7139f

Browse files
authored
[github-actions] Use new init function (#31)
Gets rid of the custom checkout that we need to keep updated and optionally multiple references to the version of (aerius-)github-actions.
1 parent b62d687 commit af7139f

3 files changed

Lines changed: 12 additions & 24 deletions

File tree

.github/workflows/on-pull_request-opened-synchronize-reopened.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,15 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Check out github-actions repo
13-
uses: actions/checkout@v4
14-
with:
15-
repository: aerius/github-actions
16-
path: aerius-github-actions
17-
ref: v1.1
12+
- name: Init the github-actions repo
13+
uses: aerius/github-actions/init@v1.1
1814

19-
- uses: aerius/github-actions/events/pull_request-event-action@v1.1
15+
- uses: ./aerius-github-actions/events/pull_request-event-action
2016
with:
2117
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2218
ROOT_POM_DIRECTORY: repo/source
2319

24-
- uses: aerius/github-actions/extras/docker-build-action@v1.1
20+
- uses: ./aerius-github-actions/extras/docker-build-action
2521
with:
2622
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2723
DOCKER_IMAGE_NAME: ${{ github.event.repository.name }}

.github/workflows/on-push.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,18 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- name: Check out github-actions repo
12-
uses: actions/checkout@v4
13-
with:
14-
repository: aerius/github-actions
15-
path: aerius-github-actions
16-
ref: v1.1
11+
- name: Init the github-actions repo
12+
uses: aerius/github-actions/init@v1.1
1713

18-
- uses: aerius/github-actions/events/push-event-action@v1.1
14+
- uses: ./aerius-github-actions/events/push-event-action
1915
with:
2016
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2117
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2218
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
2319
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
2420
ROOT_POM_DIRECTORY: repo/source
2521

26-
- uses: aerius/github-actions/extras/docker-build-or-publish-based-on-maven-project-version-action@v1.1
22+
- uses: ./aerius-github-actions/extras/docker-build-or-publish-based-on-maven-project-version-action
2723
with:
2824
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2925
DOCKER_REGISTRY_USERNAME: ${{ secrets.NEXUS_USERNAME }}

.github/workflows/on-release-published.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,18 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Check out github-actions repo
13-
uses: actions/checkout@v4
14-
with:
15-
repository: aerius/github-actions
16-
path: aerius-github-actions
17-
ref: v1.1
12+
- name: Init the github-actions repo
13+
uses: aerius/github-actions/init@v1.1
1814

19-
- uses: aerius/github-actions/events/release-event-action@v1.1
15+
- uses: ./aerius-github-actions/events/release-event-action
2016
with:
2117
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2218
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2319
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
2420
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
2521
ROOT_POM_DIRECTORY: repo/source
2622

27-
- uses: aerius/github-actions/extras/docker-publish-action@v1.1
23+
- uses: ./aerius-github-actions/extras/docker-publish-action
2824
with:
2925
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3026
DOCKER_REGISTRY_USERNAME: ${{ secrets.NEXUS_USERNAME }}

0 commit comments

Comments
 (0)