Skip to content

Commit

Permalink
chore: debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ohassine committed Dec 12, 2024
1 parent e54dd05 commit e230941
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/actions/deploy-to-s3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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:
Expand Down

0 comments on commit e230941

Please sign in to comment.