Skip to content

Commit ab29fce

Browse files
Fix release workflow (#293)
- Changed order of steps Signed-off-by: Filip Vitkovský <filip.vitkovsky@pantheon.tech>
1 parent 3f8ad37 commit ab29fce

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

.github/workflows/beta-release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
if: "github.event.release.prerelease"
1515
runs-on: ubuntu-latest
1616
steps:
17+
# Check out current repository
18+
- name: Fetch Sources
19+
uses: actions/checkout@v3
20+
with:
21+
token: ${{ secrets.RELEASE_ACTION_TOKEN }}
22+
ref: ${{ github.head_ref }}
1723

1824
# Setup Java 11 environment for the next steps
1925
- name: Setup Java
@@ -23,13 +29,6 @@ jobs:
2329
distribution: 'adopt'
2430
cache: gradle
2531

26-
# Check out current repository
27-
- name: Fetch Sources
28-
uses: actions/checkout@v3
29-
with:
30-
token: ${{ secrets.RELEASE_ACTION_TOKEN }}
31-
ref: ${{ github.head_ref }}
32-
3332
# Create beta version
3433
- name: Create beta version
3534
run: gradle createBetaVersion

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
if: "!github.event.release.prerelease"
1515
runs-on: ubuntu-latest
1616
steps:
17+
# Check out current repository
18+
- name: Fetch Sources
19+
uses: actions/checkout@v3
20+
with:
21+
token: ${{ secrets.RELEASE_ACTION_TOKEN }}
22+
ref: ${{ github.head_ref }}
1723

1824
# Setup Java 11 environment for the next steps
1925
- name: Setup Java
@@ -23,13 +29,6 @@ jobs:
2329
distribution: 'adopt'
2430
cache: gradle
2531

26-
# Check out current repository
27-
- name: Fetch Sources
28-
uses: actions/checkout@v3
29-
with:
30-
token: ${{ secrets.RELEASE_ACTION_TOKEN }}
31-
ref: ${{ github.head_ref }}
32-
3332
# Create release version
3433
- name: Create release version
3534
run: gradle createReleaseVersion

0 commit comments

Comments
 (0)