From 6bf2a2b2ff9cef97ace54d3f865b715053c09db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhat=20G=C3=BCl=C3=A7i=C3=A7ek?= Date: Tue, 21 Jul 2026 13:43:22 +0200 Subject: [PATCH] [github-actions] Use new init function Gets rid of the custom checkout that we need to keep updated and optionally multiple references to the version of (aerius-)github-actions. --- .../on-pull_request-opened-synchronize-reopened.yml | 10 +++------- .github/workflows/on-push.yml | 10 +++------- .github/workflows/on-release-published.yml | 10 +++------- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/on-pull_request-opened-synchronize-reopened.yml b/.github/workflows/on-pull_request-opened-synchronize-reopened.yml index be1d462..1d049c2 100644 --- a/.github/workflows/on-pull_request-opened-synchronize-reopened.yml +++ b/.github/workflows/on-pull_request-opened-synchronize-reopened.yml @@ -9,14 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Check out github-actions repo - uses: actions/checkout@v4 - with: - repository: aerius/github-actions - path: aerius-github-actions - ref: v1.1 + - name: Init the github-actions repo + uses: aerius/github-actions/init@v1.1 - - uses: aerius/github-actions/events/pull_request-event-action@v1.1 + - uses: ./aerius-github-actions/events/pull_request-event-action with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index 917a4df..3f3c418 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -8,14 +8,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Check out github-actions repo - uses: actions/checkout@v4 - with: - repository: aerius/github-actions - path: aerius-github-actions - ref: v1.1 + - name: Init the github-actions repo + uses: aerius/github-actions/init@v1.1 - - uses: aerius/github-actions/events/push-event-action@v1.1 + - uses: ./aerius-github-actions/events/push-event-action with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/on-release-published.yml b/.github/workflows/on-release-published.yml index 7cae968..bfba593 100644 --- a/.github/workflows/on-release-published.yml +++ b/.github/workflows/on-release-published.yml @@ -9,14 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Check out github-actions repo - uses: actions/checkout@v4 - with: - repository: aerius/github-actions - path: aerius-github-actions - ref: v1.1 + - name: Init the github-actions repo + uses: aerius/github-actions/init@v1.1 - - uses: aerius/github-actions/events/release-event-action@v1.1 + - uses: ./aerius-github-actions/events/release-event-action with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}