Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github-actions to 4.14.15 #170

Merged
merged 5 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/call-universal_test_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ jobs:

- name: Run actionlint
id: actionlint
uses: raven-actions/actionlint@v1
uses: raven-actions/actionlint@v2

- name: actionlint Summary
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/call-universal_test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ jobs:

- name: Run actionlint
id: actionlint
uses: raven-actions/actionlint@v1
uses: raven-actions/actionlint@v2

- name: actionlint Summary
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-validate_workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:

- name: Run actionlint
id: actionlint
uses: raven-actions/actionlint@v1
uses: raven-actions/actionlint@v2

- name: actionlint Summary
if: always()
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/universal_workflow_light.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ jobs:
priority: '001'
cached_object: ${{ steps.ltp.outputs.init_cache_name }}
debug: false
github_token: ${{ secrets.enterprise_github_token || github.token }}

outputs:
debug: ${{ steps.begin_report.outputs.debug }}
Expand Down Expand Up @@ -709,6 +710,7 @@ jobs:
${{ steps.iltp.outputs.install_cache_prefix}}_${{steps.iltp.outputs.global_title}}-PHP${{matrix.php}}-MYSQL${{matrix.mysql}}
# yamllint enable rule:line-length
debug: ${{ inputs.debug }}
github_token: ${{ secrets.enterprise_github_token || github.token }}

runscript:
needs: ['init', 'install']
Expand Down Expand Up @@ -753,7 +755,7 @@ jobs:
yaml: generated_testplan.yaml
loglevel: info
logfile: load_testplan_runscript.log
token: ${{ secrets.enterprise_github_token }}
token: ${{ secrets.enterprise_github_token || github.token }}

- name: Convert variables
id: rt
Expand Down Expand Up @@ -818,7 +820,8 @@ jobs:
debug: ${{ needs.init.outputs.debug }}

- name: 'Modify composer.json'
if: ${{ steps.rt.outputs.runscript_composer_transform != '' && steps.rt.outputs.runscript_composer_early == 'false' }}
# Also run this if there is a transformation but composer_early is set to 'skip'
if: ${{ steps.rt.outputs.runscript_composer_transform != '' && steps.rt.outputs.runscript_composer_early != 'true' }}
uses: 'OXID-eSales/github-actions/composer_merge@v4'
with:
file: 'source/${{ steps.rt.outputs.runscript_path }}/composer.json'
Expand All @@ -834,6 +837,7 @@ jobs:
github_token: ${{ secrets.enterprise_github_token || github.token }}

- name: Run composer if there is no transform
# Only run this if there is no transformation and composer_early is set to 'false'
if: ${{ steps.rt.outputs.runscript_composer_transform == '' && steps.rt.outputs.runscript_composer_early == 'false' }}
run: |
# run composer
Expand Down Expand Up @@ -899,6 +903,7 @@ jobs:
mysql: ${{matrix.mysql}}
status: ${{job.status}}
debug: ${{ inputs.debug }}
github_token: ${{ secrets.enterprise_github_token || github.token }}

runslim:
needs: ['init', 'install']
Expand Down Expand Up @@ -1082,6 +1087,7 @@ jobs:
mysql: ${{matrix.mysql}}
status: ${{job.status}}
debug: ${{ inputs.debug }}
github_token: ${{ secrets.enterprise_github_token || github.token }}

sonarcloud:
needs: ['init', 'install', 'runscript', 'runslim']
Expand Down Expand Up @@ -1177,6 +1183,7 @@ jobs:
testplan: ${{matrix.testplan}}
status: ${{job.status}}
debug: ${{ inputs.debug }}
github_token: ${{ secrets.enterprise_github_token || github.token }}

yamllint:
needs: ['init', 'install']
Expand Down Expand Up @@ -1209,6 +1216,7 @@ jobs:
testplan: ''
status: ${{job.status}}
debug: false
github_token: ${{ secrets.enterprise_github_token || github.token }}

actionlint:
needs: ['init', 'install']
Expand All @@ -1231,7 +1239,7 @@ jobs:

- name: Run actionlint
id: actionlint
uses: raven-actions/actionlint@v1
uses: raven-actions/actionlint@v2

- name: actionlint Summary
if: always()
Expand All @@ -1258,6 +1266,7 @@ jobs:
testplan: ''
status: ${{job.status}}
debug: false
github_token: ${{ secrets.enterprise_github_token || github.token }}

finish:
if: ${{ always() && needs.init.outputs.finish_skip != 'true' }}
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/universal_workflow_light.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ jobs:
priority: '001'
cached_object: ${{ steps.ltp.outputs.init_cache_name }}
debug: false
github_token: ${{ secrets.enterprise_github_token || github.token }}

outputs:
debug: ${{ steps.begin_report.outputs.debug }}
Expand Down Expand Up @@ -709,6 +710,7 @@ jobs:
${{ steps.iltp.outputs.install_cache_prefix}}_${{steps.iltp.outputs.global_title}}-PHP${{matrix.php}}-MYSQL${{matrix.mysql}}
# yamllint enable rule:line-length
debug: ${{ inputs.debug }}
github_token: ${{ secrets.enterprise_github_token || github.token }}

runscript:
needs: ['init', 'install']
Expand Down Expand Up @@ -753,7 +755,7 @@ jobs:
yaml: generated_testplan.yaml
loglevel: info
logfile: load_testplan_runscript.log
token: ${{ secrets.enterprise_github_token }}
token: ${{ secrets.enterprise_github_token || github.token }}

- name: Convert variables
id: rt
Expand Down Expand Up @@ -818,7 +820,8 @@ jobs:
debug: ${{ needs.init.outputs.debug }}

- name: 'Modify composer.json'
if: ${{ steps.rt.outputs.runscript_composer_transform != '' && steps.rt.outputs.runscript_composer_early == 'false' }}
# Also run this if there is a transformation but composer_early is set to 'skip'
if: ${{ steps.rt.outputs.runscript_composer_transform != '' && steps.rt.outputs.runscript_composer_early != 'true' }}
uses: 'OXID-eSales/github-actions/composer_merge@v4'
with:
file: 'source/${{ steps.rt.outputs.runscript_path }}/composer.json'
Expand All @@ -834,6 +837,7 @@ jobs:
github_token: ${{ secrets.enterprise_github_token || github.token }}

- name: Run composer if there is no transform
# Only run this if there is no transformation and composer_early is set to 'false'
if: ${{ steps.rt.outputs.runscript_composer_transform == '' && steps.rt.outputs.runscript_composer_early == 'false' }}
run: |
# run composer
Expand Down Expand Up @@ -899,6 +903,7 @@ jobs:
mysql: ${{matrix.mysql}}
status: ${{job.status}}
debug: ${{ inputs.debug }}
github_token: ${{ secrets.enterprise_github_token || github.token }}

runslim:
needs: ['init', 'install']
Expand Down Expand Up @@ -1082,6 +1087,7 @@ jobs:
mysql: ${{matrix.mysql}}
status: ${{job.status}}
debug: ${{ inputs.debug }}
github_token: ${{ secrets.enterprise_github_token || github.token }}

sonarcloud:
needs: ['init', 'install', 'runscript', 'runslim']
Expand Down Expand Up @@ -1177,6 +1183,7 @@ jobs:
testplan: ${{matrix.testplan}}
status: ${{job.status}}
debug: ${{ inputs.debug }}
github_token: ${{ secrets.enterprise_github_token || github.token }}

yamllint:
needs: ['init', 'install']
Expand Down Expand Up @@ -1209,6 +1216,7 @@ jobs:
testplan: ''
status: ${{job.status}}
debug: false
github_token: ${{ secrets.enterprise_github_token || github.token }}

actionlint:
needs: ['init', 'install']
Expand All @@ -1231,7 +1239,7 @@ jobs:

- name: Run actionlint
id: actionlint
uses: raven-actions/actionlint@v1
uses: raven-actions/actionlint@v2

- name: actionlint Summary
if: always()
Expand All @@ -1258,6 +1266,7 @@ jobs:
testplan: ''
status: ${{job.status}}
debug: false
github_token: ${{ secrets.enterprise_github_token || github.token }}

finish:
if: ${{ always() && needs.init.outputs.finish_skip != 'true' }}
Expand Down
8 changes: 8 additions & 0 deletions append_report/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ inputs:
description: 'Enable debugging'
default: false
required: false
github_token:
type: string
required: false
description: 'Github token to be replaced by a variable in the debug script'
default: ''

runs:
using: "composite"
Expand Down Expand Up @@ -123,6 +128,9 @@ runs:
sed -e 's/^/ /' debug/debug.sh >>"${DEBUG_FILE}"
rm debug/debug.sh
fi
if [ -n "${{ inputs.github_token }}" ]; then
sed -e 's|${{ inputs.github_token}}|${DEBUG_GH_TOKEN}|g' -i "${DEBUG_FILE}"
fi
cat >>"${DEBUG_FILE}" <<EODS
end_job "$DEBUG_NAME"
}
Expand Down
3 changes: 3 additions & 0 deletions begin_report/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ runs:
#!/bin/bash
set -e
set -x
# Set this to your github token or export this variable before
# running the script
# DEBUG_GH_TOKEN='<put your own token here>'

function banner() {
PURPLE=$(echo -e "\033[0;35m")
Expand Down