Skip to content

Commit

Permalink
Fix token handling in styles action
Browse files Browse the repository at this point in the history
  • Loading branch information
joernott committed Aug 26, 2024
1 parent 07ef24f commit 8e229a9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/oxid-esales/defaults/scripts/check_log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ while read -r LINE ; do
grep -E "${LINE}" "${LOG_FILE}"
RESULT=1
else
echo -e "\033[0;32m Log dioes not contain matching pattern ${LINE}"
echo -e "\033[0;32m Log does not contain matching pattern ${LINE}"
fi
fi
done <"${PATTERN_FILE}"
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/call-universal_test_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,15 @@ jobs:
docker_token: ${{ secrets.DOCKER_HUB_TOKEN }}
debug: ${{ needs.init.outputs.debug }}

- name: Update the github token
run: |
# Update github token
${{ inputs.debug }}
docker compose exec -T \
${{ steps.styles_testplan.outputs.runscript_container_options }} \
${{ steps.styles_testplan.outputs.runscript_container_name }} \
composer config -g github-oauth.github.com "${{ secrets.enterprise_github_token || github.token }}"
- name: 'Modify composer.json'
if: ${{ steps.styles_testplan.outputs.styles_composer_transform != '' }}
uses: 'OXID-eSales/github-actions/composer_merge@v4'
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/call-universal_test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,15 @@ jobs:
docker_token: ${{ secrets.DOCKER_HUB_TOKEN }}
debug: ${{ needs.init.outputs.debug }}

- name: Update the github token
run: |
# Update github token
${{ inputs.debug }}
docker compose exec -T \
${{ steps.styles_testplan.outputs.runscript_container_options }} \
${{ steps.styles_testplan.outputs.runscript_container_name }} \
composer config -g github-oauth.github.com "${{ secrets.enterprise_github_token || github.token }}"
- name: 'Modify composer.json'
if: ${{ steps.styles_testplan.outputs.styles_composer_transform != '' }}
uses: 'OXID-eSales/github-actions/composer_merge@v4'
Expand Down

0 comments on commit 8e229a9

Please sign in to comment.