name: Test Netdisco on: workflow_dispatch: inputs: debug_enabled: description: 'Run debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' required: false default: false # push: # branches: # - master jobs: build: runs-on: ubuntu-latest container: image: 'netdisco/netdisco:latest-base' steps: # - name: Check out latest code # env: # GITHUB_WORKSPACE: '/home/netdisco/git' # uses: actions/checkout@master - name: Get the Tag id: get_tag run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/} # - uses: shogo82148/actions-setup-perl@v1.12.2 # with: # perl-version: 'latest' # Enable tmate debugging of manually-triggered workflows if the input option was provided - run: echo $PATH - run: id - run: pwd - run: echo 'if [ "$1" == "update" ]; then `apk update`; else `apk add "${*:2}"`; fi' > /home/netdisco/bin/apt-get && chmod +x /home/netdisco/bin/apt-get - name: Setup tmate session uses: mxschmitt/action-tmate@v3 with: sudo: false if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}. # - run: 'cpanm --installdeps .' # - run: 'prove -vl xt/*.t'