actions: Fix GITHUB_OUTPUT variables

This commit is contained in:
ColorfulRhino
2024-07-09 22:33:33 +02:00
committed by Igor
parent 8162899d3d
commit a001fefc57

View File

@@ -15,7 +15,8 @@ jobs:
steps: steps:
- name: Assign secret - name: Assign secret
id: get_dispatch_secret id: get_dispatch_secret
run: echo 'name=dispatch_secret::${{ secrets.ARMBIAN_SELF_DISPATCH_TOKEN }}' >> $GITHUB_OUTPUT run: echo "dispatch_secret=${{ secrets.ARMBIAN_SELF_DISPATCH_TOKEN }}" >> $GITHUB_OUTPUT
- name: Get event details - name: Get event details
id: get_event_details id: get_event_details
# Process JSON according https://github.com/orgs/community/discussions/26288 # Process JSON according https://github.com/orgs/community/discussions/26288
@@ -24,7 +25,8 @@ jobs:
JSON="${JSON//'%'/'%25'}" JSON="${JSON//'%'/'%25'}"
JSON="${JSON//$'\n'/'%0A'}" JSON="${JSON//$'\n'/'%0A'}"
JSON="${JSON//$'\r'/'%0D'}" JSON="${JSON//$'\r'/'%0D'}"
echo "name=event_details::${JSON}" >> $GITHUB_OUTPUT echo "event_details=${JSON}" >> $GITHUB_OUTPUT
- name: Dispatch event on forked repostitory - name: Dispatch event on forked repostitory
if: steps.get_dispatch_secret.outputs.dispatch_secret if: steps.get_dispatch_secret.outputs.dispatch_secret
uses: peter-evans/repository-dispatch@v3 uses: peter-evans/repository-dispatch@v3