diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2bb4a673..0e746ab7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,12 +29,21 @@ jobs: script: | return context.payload.release.upload_url.replace('{?name,label}', ''); + - name: Check if file exists + run: | + if [ -f "./dict_for_fcitx5.txt" ]; then + echo "File exists." + else + echo "File does not exist." + fi + + - name: Upload Release Asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.TOKEN }} with: - asset_path: ./dict_for_fcitx5.txt + asset_path: dict_for_fcitx5.txt asset_name: dict_for_fcitx5.txt asset_content_type: text/plain upload_url: ${{ steps.upload-url.outputs.result }}