Github action terminate helm process when helm upgrade

Issue: Helm release is in pending-upgrade state after pipeline executed.
It seems to me that Github-action terminates the Helm process in after job state. I think Helm suppose to block the terminal(using --wait option) and return after the upgrade is done but somehow the process is pushed to background and got clean up later.

Helm command:

          helm upgrade \
            --debug \
            --install \
            --create-namespace \
            --atomic \
            --wait \
            --timeout 30m0s \
            --namespace dev \
            keyspace-release-dev \
            ./helm --set image.repository=${{ secrets.ACR_NAME }} --set mongo.url=${{ secrets.MONGO_URL_DEV }}

I also posted the issue in Stackoverflow.