Skip to content

Home directory cannot be accessed via ~ #368

Open
@LightTab2

Description

@LightTab2

Description:
I think that the home directory cannot be accessed via ~. It does not fail, but cannot find the files that obviously should be there.

To Reproduce:

  1. Checkout repository with a file.
  2. Move the file to ~.
  3. Try to upload it using this action.

Example Github Action:

name: Ubuntu

on:
  push:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout 
        uses: actions/checkout@v3

      - name: Move file
        run: mv ./README.md ~/README.md

      - name: Create release artifact
        uses: softprops/action-gh-release@v1
        with:
          files: ~/README.md
          tag_name: issue
          token: ${{ secrets.GITHUB_TOKEN }}

Expected behavior:
The file from home directory is uploaded to the release.

Additional Info:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions