mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
GH Actions: forked-helper: Fix deprecated ::set-output, fix 404 link
::set-output has been deprecated in 2022: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
This commit is contained in:
6
.github/workflows/forked-helper.yml
vendored
6
.github/workflows/forked-helper.yml
vendored
@@ -15,16 +15,16 @@ jobs:
|
||||
steps:
|
||||
- name: Assign secret
|
||||
id: get_dispatch_secret
|
||||
run: echo '::set-output name=dispatch_secret::${{ secrets.ARMBIAN_SELF_DISPATCH_TOKEN }}'
|
||||
run: echo 'name=dispatch_secret::${{ secrets.ARMBIAN_SELF_DISPATCH_TOKEN }}' >> $GITHUB_OUTPUT
|
||||
- name: Get event details
|
||||
id: get_event_details
|
||||
# Process JSON according https://github.community/t5/GitHub-Actions/set-output-Truncates-Multiline-Strings/td-p/37870
|
||||
# Process JSON according https://github.com/orgs/community/discussions/26288
|
||||
run: |
|
||||
JSON=$(cat ${{ github.event_path }})
|
||||
JSON="${JSON//'%'/'%25'}"
|
||||
JSON="${JSON//$'\n'/'%0A'}"
|
||||
JSON="${JSON//$'\r'/'%0D'}"
|
||||
echo "::set-output name=event_details::${JSON}"
|
||||
echo "name=event_details::${JSON}" >> $GITHUB_OUTPUT
|
||||
- name: Dispatch event on forked repostitory
|
||||
if: steps.get_dispatch_secret.outputs.dispatch_secret
|
||||
uses: peter-evans/repository-dispatch@v3
|
||||
|
||||
Reference in New Issue
Block a user