Skip to content

Commit

Permalink
Merge pull request #30029 from Expensify/jpersaud_osbotify_updates
Browse files Browse the repository at this point in the history
[No QA] Ensure OSBotify key exists before running next steps in setupGitForOSBotifyApp
  • Loading branch information
roryabraham authored Oct 26, 2023
2 parents 53699cf + 50456d6 commit 546f27e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/actions/composite/setupGitForOSBotifyApp/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ outputs:
runs:
using: composite
steps:
- name: Check if gpg encrypted private key is present
id: key_check
shell: bash
run: |
if [[ -f .github/workflows/OSBotify-private-key.asc.gpg ]]; then
echo "::set-output name=key_exists::true"
fi
- name: Checkout
uses: actions/checkout@v3
if: steps.key_check.outputs.key_exists != 'true'
with:
sparse-checkout: |
.github
- name: Decrypt OSBotify GPG key
run: cd .github/workflows && gpg --quiet --batch --yes --decrypt --passphrase=${{ inputs.GPG_PASSPHRASE }} --output OSBotify-private-key.asc OSBotify-private-key.asc.gpg
shell: bash
Expand Down

0 comments on commit 546f27e

Please sign in to comment.