Skip to content

Commit

Permalink
Add some adjustments to debug the script
Browse files Browse the repository at this point in the history
  • Loading branch information
andergmartins committed Nov 20, 2024
1 parent d98a0c3 commit 5855d8d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/prepare-for-translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,19 @@ jobs:
if: ${{ inputs.tmate_enabled }}
timeout-minutes: 10

- name: Add alias for the dev-workspace run command
run: |
echo "alias run='$GITHUB_WORKSPACE/dev-workspace/run'" >> ~/.zshrc
echo "alias run='$GITHUB_WORKSPACE/dev-workspace/run'" >> ~/.bashrc
- name: Prepare composer
run: |
$GITHUB_WORKSPACE/dev-workspace/run composer validate
$GITHUB_WORKSPACE/dev-workspace/run composer install
run composer validate
run composer install
- name: Show version of tools inside the dev-workspace
run: |
$GITHUB_WORKSPACE/dev-workspace/run composer info:versions
run composer info:versions
# - name: Run POT file check against the main branch
# run: |
Expand Down Expand Up @@ -70,16 +75,17 @@ jobs:
- name: Get the current version number and store it in a variable
id: get-plugin-version
run: |
PLUGIN_VERSION=$($GITHUB_WORKSPACE/dev-workspace/run pversion)
PLUGIN_VERSION=$(run pversion)
echo "Current version: $PLUGIN_VERSION"
echo "PLUGIN_VERSION=$PLUGIN_VERSION" >> $GITHUB_OUTPUT
- name: Build the testing package and get its url for download
id: build-testing-package
run: |
$GITHUB_WORKSPACE/dev-workspace/run composer build
ZIPFILE_NAME=$($GITHUB_WORKSPACE/dev-workspace/run pzipfile)
ZIPFILE_NAME=$(run pzipfile)
echo "ZIPFILE_NAME=$ZIPFILE_NAME" >> $GITHUB_OUTPUT
run composer build
pwd
ls -lha $GITHUB_WORKSPACE/dist/
- name: Upload zip as artifact
Expand Down

0 comments on commit 5855d8d

Please sign in to comment.