mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-03 15:55:14 +00:00
github: update all Actions (#934)
Switch publicsuffix update workflow to use the same pull-request action as release drafter. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
8
.github/workflows/deploy_snapshot.yml
vendored
8
.github/workflows/deploy_snapshot.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
|||||||
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Decrypt secrets
|
- name: Decrypt secrets
|
||||||
run: release/signing-setup.sh "$ENCRYPT_KEY"
|
run: release/signing-setup.sh "$ENCRYPT_KEY"
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
run: ./.github/checksum.sh checksum.txt
|
run: ./.github/checksum.sh checksum.txt
|
||||||
|
|
||||||
- name: Cache gradle modules
|
- name: Cache gradle modules
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches/modules-2
|
path: ~/.gradle/caches/modules-2
|
||||||
key: ${{ runner.os }}-gradlemodules-${{ hashFiles('checksum.txt') }}
|
key: ${{ runner.os }}-gradlemodules-${{ hashFiles('checksum.txt') }}
|
||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
${{ runner.os }}-gradlemodules-
|
${{ runner.os }}-gradlemodules-
|
||||||
|
|
||||||
- name: Cache gradle jars
|
- name: Cache gradle jars
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches/jars-3
|
path: ~/.gradle/caches/jars-3
|
||||||
key: ${{ runner.os }}-gradlejars-${{ hashFiles('checksum.txt') }}
|
key: ${{ runner.os }}-gradlejars-${{ hashFiles('checksum.txt') }}
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
${{ runner.os }}-gradlejars-
|
${{ runner.os }}-gradlejars-
|
||||||
|
|
||||||
- name: Cache gradle build
|
- name: Cache gradle build
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches/build-cache-1
|
path: ~/.gradle/caches/build-cache-1
|
||||||
key: ${{ runner.os }}-gradlebuildcache-${{ hashFiles('checksum.txt') }}
|
key: ${{ runner.os }}-gradlebuildcache-${{ hashFiles('checksum.txt') }}
|
||||||
|
8
.github/workflows/pull_request.yml
vendored
8
.github/workflows/pull_request.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Copy CI gradle.properties
|
- name: Copy CI gradle.properties
|
||||||
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache gradle modules
|
- name: Cache gradle modules
|
||||||
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches/modules-2
|
path: ~/.gradle/caches/modules-2
|
||||||
key: ${{ runner.os }}-gradlemodules-${{ hashFiles('checksum.txt') }}
|
key: ${{ runner.os }}-gradlemodules-${{ hashFiles('checksum.txt') }}
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache gradle jars
|
- name: Cache gradle jars
|
||||||
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches/jars-3
|
path: ~/.gradle/caches/jars-3
|
||||||
key: ${{ runner.os }}-gradlejars-${{ hashFiles('checksum.txt') }}
|
key: ${{ runner.os }}-gradlejars-${{ hashFiles('checksum.txt') }}
|
||||||
@@ -58,7 +58,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache gradle build
|
- name: Cache gradle build
|
||||||
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
if: ${{ steps.service-changed.outputs.result == 'true' }}
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches/build-cache-1
|
path: ~/.gradle/caches/build-cache-1
|
||||||
key: ${{ runner.os }}-gradlebuildcache-${{ hashFiles('checksum.txt') }}
|
key: ${{ runner.os }}-gradlebuildcache-${{ hashFiles('checksum.txt') }}
|
||||||
|
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Decrypt secrets
|
- name: Decrypt secrets
|
||||||
run: release/signing-setup.sh "$ENCRYPT_KEY"
|
run: release/signing-setup.sh "$ENCRYPT_KEY"
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
run: ./.github/checksum.sh checksum.txt
|
run: ./.github/checksum.sh checksum.txt
|
||||||
|
|
||||||
- name: Cache gradle modules
|
- name: Cache gradle modules
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches/modules-2
|
path: ~/.gradle/caches/modules-2
|
||||||
key: ${{ runner.os }}-gradlemodules-${{ hashFiles('checksum.txt') }}
|
key: ${{ runner.os }}-gradlemodules-${{ hashFiles('checksum.txt') }}
|
||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
${{ runner.os }}-gradlemodules-
|
${{ runner.os }}-gradlemodules-
|
||||||
|
|
||||||
- name: Cache gradle jars
|
- name: Cache gradle jars
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches/jars-3
|
path: ~/.gradle/caches/jars-3
|
||||||
key: ${{ runner.os }}-gradlejars-${{ hashFiles('checksum.txt') }}
|
key: ${{ runner.os }}-gradlejars-${{ hashFiles('checksum.txt') }}
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
${{ runner.os }}-gradlejars-
|
${{ runner.os }}-gradlejars-
|
||||||
|
|
||||||
- name: Cache gradle build
|
- name: Cache gradle build
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches/build-cache-1
|
path: ~/.gradle/caches/build-cache-1
|
||||||
key: ${{ runner.os }}-gradlebuildcache-${{ hashFiles('checksum.txt') }}
|
key: ${{ runner.os }}-gradlebuildcache-${{ hashFiles('checksum.txt') }}
|
||||||
@@ -54,19 +54,19 @@ jobs:
|
|||||||
run: ./gradlew :app:assembleFreeRelease :app:assembleNonFreeRelease :app:bundleNonFreeRelease
|
run: ./gradlew :app:assembleFreeRelease :app:assembleNonFreeRelease :app:bundleNonFreeRelease
|
||||||
|
|
||||||
- name: Upload non-free release APK
|
- name: Upload non-free release APK
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: APS Non-Free Release APK
|
name: APS Non-Free Release APK
|
||||||
path: app/build/outputs/apk/nonFree/release/app-release.apk
|
path: app/build/outputs/apk/nonFree/release/app-release.apk
|
||||||
|
|
||||||
- name: Upload non-free release Bundle
|
- name: Upload non-free release Bundle
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: APS Non-Free Release Bundle
|
name: APS Non-Free Release Bundle
|
||||||
path: app/build/outputs/bundle/nonFree/release/app-release.aab
|
path: app/build/outputs/bundle/nonFree/release/app-release.aab
|
||||||
|
|
||||||
- name: Upload free release APK
|
- name: Upload free release APK
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: APS Free Release APK
|
name: APS Free Release APK
|
||||||
path: app/build/outputs/apk/free/release/app-release.apk
|
path: app/build/outputs/apk/free/release/app-release.apk
|
||||||
@@ -81,22 +81,22 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Get Non-Free Release APK
|
- name: Get Non-Free Release APK
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: APS Non-Free Release APK
|
name: APS Non-Free Release APK
|
||||||
path: artifacts/nonFree
|
path: artifacts/nonFree
|
||||||
|
|
||||||
- name: Get Non-Free Bundle
|
- name: Get Non-Free Bundle
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: APS Non-Free Release Bundle
|
name: APS Non-Free Release Bundle
|
||||||
path: artifacts/nonFree
|
path: artifacts/nonFree
|
||||||
|
|
||||||
- name: Get Free Release APK
|
- name: Get Free Release APK
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: APS Free Release APK
|
name: APS Free Release APK
|
||||||
path: artifacts/free
|
path: artifacts/free
|
||||||
|
26
.github/workflows/update_publicsuffix_data.yml
vendored
26
.github/workflows/update_publicsuffix_data.yml
vendored
@@ -8,22 +8,26 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Download new publicsuffix data
|
- name: Download new publicsuffix data
|
||||||
run: curl -L https://github.com/mozilla-mobile/android-components/raw/master/components/lib/publicsuffixlist/src/main/assets/publicsuffixes -o app/src/main/assets/publicsuffixes
|
run: curl -L https://github.com/mozilla-mobile/android-components/raw/master/components/lib/publicsuffixlist/src/main/assets/publicsuffixes -o app/src/main/assets/publicsuffixes
|
||||||
|
|
||||||
- name: Compare list changes
|
- name: Compare list changes
|
||||||
run: if [[ $(git diff --binary --stat) != '' ]]; then echo "::set-env name=UPDATED::true"; fi
|
run: if [[ $(git diff --binary --stat) != '' ]]; then echo "::set-env name=UPDATED::true"; fi
|
||||||
- name: Create update PR
|
|
||||||
uses: peter-evans/create-pull-request@v2
|
- name: Commit changes
|
||||||
|
if: env.UPDATED == 'true'
|
||||||
|
run: |
|
||||||
|
git checkout -b bot/update-psl
|
||||||
|
git add app/src/main/assets/publicsuffixes
|
||||||
|
git commit --message "Update Public Suffix List data'
|
||||||
|
|
||||||
|
- name: Create update PR
|
||||||
|
uses: thomaseizinger/create-pull-request@1.0.0
|
||||||
if: env.UPDATED == 'true'
|
if: env.UPDATED == 'true'
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_PERSONAL_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
commit-message: 'Update Public Suffix List data'
|
head: bot/update-psl
|
||||||
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
base: develop
|
||||||
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
|
||||||
title: 'Update Public Suffix List data'
|
title: 'Update Public Suffix List data'
|
||||||
body: 'Updates Public Suffix List from https://publicsuffix.org/list/'
|
body: 'Updates Public Suffix List from https://publicsuffix.org/list/'
|
||||||
assignees: msfjarvis
|
|
||||||
labels: PSL
|
|
||||||
branch: bot/update-psl
|
|
||||||
|
2
.github/workflows/validate_wrapper.yml
vendored
2
.github/workflows/validate_wrapper.yml
vendored
@@ -13,4 +13,4 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: gradle/wrapper-validation-action@v1
|
- uses: gradle/wrapper-validation-action@v1.0.3
|
||||||
|
Reference in New Issue
Block a user