Skip to content

Commit

Permalink
Replace deprecated workflow set-output commands
Browse files Browse the repository at this point in the history
  • Loading branch information
manna-harbour committed Oct 24, 2022
1 parent 7313667 commit 21fd0cf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-inputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
set-output()
{
json=`echo "$2" | jq -cnR 'inputs | split(",";"")'`
echo "::set-output name=$1::$json"
echo "$1=$json" >> $GITHUB_OUTPUT
}
set-output "alphas" "${{ github.event.inputs.alphas }}"
set-output "nav" "${{ github.event.inputs.nav }}"
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 Manna Harbour
# Copyright 2022 Manna Harbour
# https://github.com/manna-harbour/miryoku

name: 'Main'
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
custom_config: ${{ fromJSON(inputs.custom_config) }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Process inputs
id: inputs
run: |
Expand Down Expand Up @@ -79,12 +79,12 @@ jobs:
fi
cp "$rules" "$config" "$artifacts_dir"
artifact_build_name=`echo $artifact_build_name | tr ' ' '-'`
echo "::set-output name=artifact-dir::$artifacts_dir"
echo "::set-output name=artifact-build-name::$artifact_build_name"
echo "::set-output name=src::src"
echo "::set-output name=build::$build"
echo "::set-output name=kmonad-file-pattern::kmonad-*-linux"
echo "::set-output name=kmonad-dir::.github/workflows/bin"
echo "artifact_dir=$artifacts_dir" >> $GITHUB_OUTPUT
echo "artifact_build_name=$artifact_build_name" >> $GITHUB_OUTPUT
echo "src=src" >> $GITHUB_OUTPUT
echo "build=$build" >> $GITHUB_OUTPUT
echo "kmonad_file_pattern=kmonad-*-linux" >> $GITHUB_OUTPUT
echo "kmonad_dir=.github/workflows/bin" >> $GITHUB_OUTPUT
- name: Remove Build
if: ${{ matrix.mode == 'test' }}
run: |
Expand All @@ -100,7 +100,7 @@ jobs:
do
if [ -f "$file" ]
then
cp "$file" "${{ steps.inputs.outputs.artifact-dir }}"
cp "$file" "${{ steps.inputs.outputs.artifact_dir }}"
fi
done
- name: Diff
Expand All @@ -115,20 +115,20 @@ jobs:
repository: "kmonad/kmonad"
# latest: true
tag: "0.4.1"
fileName: "${{ steps.inputs.outputs.kmonad-file-pattern }}"
out-file-path: "${{ steps.inputs.outputs.kmonad-dir }}"
fileName: "${{ steps.inputs.outputs.kmonad_file_pattern }}"
out-file-path: "${{ steps.inputs.outputs.kmonad_dir }}"
- name: Dry run
if: ${{ matrix.mode == 'test' }}
run: |
kmonad=`echo ${{ steps.inputs.outputs.kmonad-dir }}/${{ steps.inputs.outputs.kmonad-file-pattern }}`
kmonad=`echo ${{ steps.inputs.outputs.kmonad_dir }}/${{ steps.inputs.outputs.kmonad_file_pattern }}`
chmod u+x "$kmonad"
for f in "${{ steps.inputs.outputs.build }}"/*.kbd
do
"$kmonad" -d "$f"
done
- name: Archive Artifacts
if: ${{ matrix.mode == 'build' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ steps.inputs.outputs.artifact-build-name }}
path: ${{ steps.inputs.outputs.artifact-dir }}
name: ${{ steps.inputs.outputs.artifact_build_name }}
path: ${{ steps.inputs.outputs.artifact_dir }}

0 comments on commit 21fd0cf

Please sign in to comment.