name: 'Test the action' on: [pull_request] jobs: test-json: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 with: path: "./" - run: npm ci --prod - run: touch ./fake-file.log - run: "git config --global user.email 'changelog@github.com'" - run: "git config --global user.name 'Awesome Github action'" - run: "git add . && git commit -m 'feat: Added fake file so version will be bumped'" - name: Generate changelog id: changelog uses: ./ env: ENV: 'dont-use-git' with: github-token: ${{ secrets.github_token }} version-file: 'test-file.json' - name: Show file run: | echo "$(