EndBug / add-and-commit

:octocat: Automatically commit changes made in your workflow run directly to your repo
MIT License
1.15k stars 117 forks source link

Error: fatal: Cannot prompt because user interactivity has been disabled. #633

Closed andrewjswan closed 7 months ago

andrewjswan commented 8 months ago

Describe the bug Same issue as https://github.com/EndBug/add-and-commit/issues/146

Workflow used

      - name: Save cache
        if: "contains(github.event.head_commit.message, '[release]')"
        uses: actions/cache/save@v4
        with:
          path: ${{ github.workspace }}
          key: plugin-mpe

      - name: Git Checkout
        if: "contains(github.event.head_commit.message, '[release]')"
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Restore cache
        if: "contains(github.event.head_commit.message, '[release]')"
        uses: actions/cache/restore@v4
        with:
          path: ${{ github.workspace }}
          key: plugin-mpe

      - name: Update / MPE1 XML
        if: "contains(github.event.head_commit.message, '[release]')"
        uses: EndBug/add-and-commit@v9
        with:
          message: 'Update / MPE1 XML for ${{ steps.version.outputs.version }}'
          add: '${{ github.workspace }}\scripts\MyVideoImporter.xml'

Expected behavior Commit one file

Logs https://github.com/andrewjswan/mediaportal-myvideo-importer/actions/runs/8332401020/job/22801697187

Logs
Error: Error: fatal: Cannot prompt because user interactivity has been disabled.
bash: line 1: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com/': No such file or directory
andrewjswan commented 8 months ago

Change windows-latest to ubuntu-latest and Action work without error

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.