Compare commits

..

27 Commits

Author SHA1 Message Date
Amy Galles
14e0a1ea6e fix final step to run on dry run 2025-10-09 15:48:18 -07:00
Amy Galles
30cd148d5f point to existing workflow 2025-10-09 15:38:32 -07:00
Amy Galles
878ef0d74a add test options 2025-10-09 15:34:12 -07:00
Amy Galles
8387aed394 add test options 2025-10-09 15:31:21 -07:00
Amy Galles
3f875d83ff reverse recent name change 2025-10-09 15:24:17 -07:00
Amy Galles
85951a502f Merge remote-tracking branch 'refs/remotes/origin/agalles/BRE-1118' into agalles/BRE-1118 2025-10-09 15:19:36 -07:00
Amy Galles
04c38101b2 change back to pm from bwpm for simplicity 2025-10-09 15:19:10 -07:00
Amy Galles
7e080775f6 fixing if then logic 2025-10-08 11:41:01 -07:00
Amy Galles
a90a11d5b1 Apply suggestions from code review
Co-authored-by: Andy Pixley <3723676+pixman20@users.noreply.github.com>
2025-10-07 12:21:22 -07:00
Amy Galles
eea675f3b0 changing pwm to bwpm 2025-10-03 14:54:17 -07:00
Amy Galles
55c150a595 fixing logic for new filenames 2025-10-03 14:22:48 -07:00
Amy Galles
274e8293a3 Apply suggestions from code review
Co-authored-by: Andy Pixley <3723676+pixman20@users.noreply.github.com>
2025-10-03 14:18:35 -07:00
Amy Galles
c8710588b9 remove unnecessary permissions 2025-10-03 11:12:58 -07:00
Amy Galles
251d3001c2 Merge branch 'main' into agalles/BRE-1118 2025-10-03 07:10:56 -07:00
Amy Galles
7e20acd6a2 enable publish workflow only if success 2025-10-02 13:10:00 -07:00
Amy Galles
dd2cf0fe0a splitting password manager and authenticator workflows 2025-10-02 11:51:31 -07:00
Amy Galles
4749080fa5 restore setting to run weekdays 2025-09-30 16:21:15 -07:00
Amy Galles
836b3ccf1f remove test settings 2025-09-30 16:19:04 -07:00
Amy Galles
12ea84c548 add write permissions 2025-09-17 14:48:29 -07:00
Amy Galles
c13973c22a add specific branch for testing 2025-09-17 14:38:30 -07:00
Amy Galles
d5e9463dfa remove test options 2025-09-17 14:15:12 -07:00
Amy Galles
8006189dba test enable disable again 2025-09-17 14:10:05 -07:00
Amy Galles
e188a8eef8 test enable disable again 2025-09-17 14:08:07 -07:00
Amy Galles
70a266e6c7 test enable disable again 2025-09-17 14:04:46 -07:00
Amy Galles
898ea3c050 add dry run to run name 2025-09-17 14:01:54 -07:00
Amy Galles
f5833eec71 update actions with dry run options and actions permission 2025-09-17 14:00:21 -07:00
Amy Galles
0864b2deeb temporarily enable hourly checks for github release 2025-09-16 14:42:59 -07:00
3 changed files with 52 additions and 16 deletions

View File

@@ -3,7 +3,7 @@ name: Publish Password Manager and Authenticator GitHub Release as newest
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * 1-5'
- cron: '0 * * * 1-5' # Every hour on the hour on weekdays
permissions:
contents: write
@@ -11,24 +11,12 @@ permissions:
actions: read
jobs:
publish-release-password-manager:
name: Publish Password Manager Release
uses: bitwarden/gh-actions/.github/workflows/_publish-mobile-github-release.yml@main
with:
release_name: "Password Manager"
workflow_name: "publish-github-release.yml"
credentials_filename: "play_creds.json"
project_type: android
check_release_command: >
bundle exec fastlane getLatestPlayStoreVersion package_name:com.x8bit.bitwarden track:production
secrets: inherit
publish-release-authenticator:
name: Publish Authenticator Release
uses: bitwarden/gh-actions/.github/workflows/_publish-mobile-github-release.yml@main
uses: bitwarden/gh-actions/.github/workflows/_publish-mobile-github-release.yml@agalles/test-1118
with:
release_name: "Authenticator"
workflow_name: "publish-github-release.yml"
workflow_name: "publish-github-release-bwa.yml"
credentials_filename: "authenticator_play_store-creds.json"
project_type: android
check_release_command: >

View File

@@ -0,0 +1,24 @@
name: Publish Password Manager and Authenticator GitHub Release as newest
on:
workflow_dispatch:
schedule:
- cron: '0 * * * 1-5' # Every hour on the hour on weekdays
permissions:
contents: write
id-token: write
actions: read
jobs:
publish-release-password-manager:
name: Publish Password Manager Release
uses: bitwarden/gh-actions/.github/workflows/_publish-mobile-github-release.yml@agalles/test-1118
with:
release_name: "Password Manager"
workflow_name: "publish-github-release-bwpm.yml"
credentials_filename: "play_creds.json"
project_type: android
check_release_command: >
bundle exec fastlane getLatestPlayStoreVersion package_name:com.x8bit.bitwarden track:production
secrets: inherit

View File

@@ -1,5 +1,6 @@
name: Publish to Google Play
run-name: "Promoting ${{ inputs.product }} ${{ inputs.version-code }} from ${{ inputs.track-from }} to ${{ inputs.track-target }}"
run-name: >
${{ inputs.dry-run && ' (Dry Run)' || '' }}Promoting ${{ inputs.product }} ${{ inputs.version-code }} from ${{ inputs.track-from }} to ${{ inputs.track-target }}
on:
workflow_dispatch:
inputs:
@@ -46,6 +47,10 @@ on:
- production
- Fastlane Automation Target
required: true
dry-run:
description: "Dry-Run, Run the workflow without publishing to the store"
type: boolean
default: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTION_RUN_URL: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
@@ -54,6 +59,7 @@ permissions:
contents: read
packages: read
id-token: write
actions: write
jobs:
promote:
@@ -122,6 +128,8 @@ jobs:
echo "$FORMATTED_MESSAGE" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Promote Play Store version to production
if: ${{ inputs.dry-run == false }}
id: publish
env:
PLAY_KEYSTORE_PASSWORD: ${{ steps.get-kv-secrets.outputs.PLAY-BETA-KEYSTORE-PASSWORD }}
PLAY_KEY_PASSWORD: ${{ steps.get-kv-secrets.outputs.PLAY-BETA-KEY-PASSWORD }}
@@ -158,3 +166,19 @@ jobs:
releaseNotes:"$RELEASE_NOTES" \
track:"$TRACK_FROM" \
trackPromoteTo:"$TRACK_TARGET"
- name: Enable Publish Github Release Workflow
if: ${{ steps.publish.conclusion == 'success' || inputs.dry-run }}
env:
PRODUCT: ${{ inputs.product }}
DRY_RUN: ${{ inputs.dry-run }}
run: |
if $DRY_RUN ; then
gh workflow view publish-github-release.yml
exit 0
fi
if [ "$PRODUCT" = "Password Manager" ]; then
gh workflow enable publish-github-release-bwpm.yml
elif [ "$PRODUCT" = "Authenticator" ]; then
gh workflow enable publish-github-release-bwa.yml
fi