Skip to content

Commit 90cca0b

Browse files
authored
[github-actions] Use new init function (#20)
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 653f35f commit 90cca0b

3 files changed

Lines changed: 9 additions & 21 deletions

File tree

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@ 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 }}

.github/workflows/on-push.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@ 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 }}

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@ 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 }}

0 commit comments

Comments
 (0)