Skip to content

Commit

Permalink
Fix release workflow (#293)
Browse files Browse the repository at this point in the history
- Changed order of steps

Signed-off-by: Filip Vitkovský <filip.vitkovsky@pantheon.tech>
  • Loading branch information
Filip-Vitkovsky committed May 11, 2023
1 parent 3f8ad37 commit ab29fce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
if: "github.event.release.prerelease"
runs-on: ubuntu-latest
steps:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v3
with:
token: ${{ secrets.RELEASE_ACTION_TOKEN }}
ref: ${{ github.head_ref }}

# Setup Java 11 environment for the next steps
- name: Setup Java
Expand All @@ -23,13 +29,6 @@ jobs:
distribution: 'adopt'
cache: gradle

# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v3
with:
token: ${{ secrets.RELEASE_ACTION_TOKEN }}
ref: ${{ github.head_ref }}

# Create beta version
- name: Create beta version
run: gradle createBetaVersion
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
if: "!github.event.release.prerelease"
runs-on: ubuntu-latest
steps:
# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v3
with:
token: ${{ secrets.RELEASE_ACTION_TOKEN }}
ref: ${{ github.head_ref }}

# Setup Java 11 environment for the next steps
- name: Setup Java
Expand All @@ -23,13 +29,6 @@ jobs:
distribution: 'adopt'
cache: gradle

# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v3
with:
token: ${{ secrets.RELEASE_ACTION_TOKEN }}
ref: ${{ github.head_ref }}

# Create release version
- name: Create release version
run: gradle createReleaseVersion
Expand Down

0 comments on commit ab29fce

Please sign in to comment.