-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,8 +81,22 @@ runs: | |
# set them as environment variables for later use | ||
echo "VERSION=v$version" >> $GITHUB_ENV | ||
echo "VERSION_CODE=$version_code" >> $GITHUB_ENV | ||
- name: Debug GitHub event | ||
shell: bash | ||
run: | | ||
echo "Event name: ${{ github.event_name }}" | ||
echo "Pull Request number: ${{ github.event.pull_request.number }}" | ||
- name: Debug build variant input | ||
shell: bash | ||
run: | | ||
echo "Build variant: '${{ inputs.build-variant }}'" | ||
- name: Test condition | ||
if: ${{ github.event.pull_request.number != '' && inputs.build-variant != 'debug' }} | ||
shell: bash | ||
run: | | ||
echo "This should run only if it's a pull request and the variant is not 'debug'." | ||
- name: Rename mapping file | ||
if: ${{ inputs.build-variant }} != 'debug' | ||
if: github.event.pull_request.number != '' && ${{ inputs.build-variant }} != 'debug' | ||
shell: bash | ||
id: mapping | ||
run: | | ||
|
@@ -94,7 +108,7 @@ runs: | |
# Set the new mapping file name as an environment variable | ||
echo "new_mapping_file_name=$new_mapping_file_name" >> $GITHUB_ENV | ||
- name: Upload mapping file to S3 from branch | ||
if: ${{ inputs.build-variant }} != 'debug' | ||
if: github.event.pull_request.number != '' && ${{ inputs.build-variant }} != 'debug' | ||
id: upload-mapping-from-branch | ||
uses: hkusu/[email protected] | ||
with: | ||
|