summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-12-07 00:04:30 +0530
committerGitHub <noreply@github.com>2021-12-06 18:34:30 +0000
commit5afb31f59e89c8435d40fa50a300d8b7f0d0746e (patch)
treeda5d1c7babaae9d93095119dcd8aec96950f9de8 /.github
parent968507aba0c7b7bb7c3df0ee1bd6caa8bd0fcc9f (diff)
Reorder workflow steps to fix cache failure (#1571)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/dependency_sync.yml2
-rw-r--r--.github/workflows/deploy_github_releases.yml6
-rw-r--r--.github/workflows/deploy_library_releases.yml6
-rw-r--r--.github/workflows/deploy_snapshot.yml6
-rw-r--r--.github/workflows/draft_new_release.yml14
5 files changed, 17 insertions, 17 deletions
diff --git a/.github/workflows/dependency_sync.yml b/.github/workflows/dependency_sync.yml
index 98f3cef0..ee6500de 100644
--- a/.github/workflows/dependency_sync.yml
+++ b/.github/workflows/dependency_sync.yml
@@ -24,7 +24,7 @@ jobs:
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v2.4.0
with:
token: ${{ secrets.PSL_UPDATE_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }}
diff --git a/.github/workflows/deploy_github_releases.yml b/.github/workflows/deploy_github_releases.yml
index 252d3d01..df631c12 100644
--- a/.github/workflows/deploy_github_releases.yml
+++ b/.github/workflows/deploy_github_releases.yml
@@ -9,6 +9,9 @@ jobs:
name: Build release binaries
runs-on: ubuntu-latest
steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2.4.0
+
- name: Set up JDK
uses : actions/setup-java@v2.4.0
with :
@@ -16,9 +19,6 @@ jobs:
java-version : '11'
cache: 'gradle'
- - name: Checkout repository
- uses: actions/checkout@v2.4.0
-
- name: Decrypt secrets
run: scripts/signing-setup.sh "$ENCRYPT_KEY"
env:
diff --git a/.github/workflows/deploy_library_releases.yml b/.github/workflows/deploy_library_releases.yml
index 1b8e11c2..477a9079 100644
--- a/.github/workflows/deploy_library_releases.yml
+++ b/.github/workflows/deploy_library_releases.yml
@@ -9,6 +9,9 @@ jobs:
publish-release:
runs-on: ubuntu-latest
steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2.4.0
+
- name: Set up JDK
uses : actions/setup-java@v2.4.0
with :
@@ -16,9 +19,6 @@ jobs:
java-version : '11'
cache: 'gradle'
- - name: Checkout repository
- uses: actions/checkout@v2.4.0
-
- name: Determine publishing task
id: task-select
run: |
diff --git a/.github/workflows/deploy_snapshot.yml b/.github/workflows/deploy_snapshot.yml
index d3408231..2542b75e 100644
--- a/.github/workflows/deploy_snapshot.yml
+++ b/.github/workflows/deploy_snapshot.yml
@@ -9,6 +9,9 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2.4.0
+
- name: Set up JDK
uses : actions/setup-java@v2.4.0
with :
@@ -16,9 +19,6 @@ jobs:
java-version : '11'
cache: 'gradle'
- - name: Checkout repository
- uses: actions/checkout@v2.4.0
-
- name: Decrypt secrets
run: scripts/signing-setup.sh "$ENCRYPT_KEY"
env:
diff --git a/.github/workflows/draft_new_release.yml b/.github/workflows/draft_new_release.yml
index 931c43b2..21454225 100644
--- a/.github/workflows/draft_new_release.yml
+++ b/.github/workflows/draft_new_release.yml
@@ -9,13 +9,6 @@ jobs:
name: "Draft a new release"
runs-on: ubuntu-latest
steps:
- - name: Set up JDK
- uses : actions/setup-java@v2.4.0
- with :
- distribution : 'zulu'
- java-version : '11'
- cache: 'gradle'
-
- name: Extract version from milestone
run: |
VERSION="${{ github.event.milestone.title }}"
@@ -42,6 +35,13 @@ jobs:
with:
ref: ${{ env.CHECKOUT_REF }}
+ - name: Set up JDK
+ uses : actions/setup-java@v2.4.0
+ with :
+ distribution : 'zulu'
+ java-version : '11'
+ cache: 'gradle'
+
- name: Update changelog
uses: thomaseizinger/keep-a-changelog-new-release@1.3.0
with: