Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.55 KB

DEV_README.md

File metadata and controls

39 lines (28 loc) · 1.55 KB

README for Developers of this action

  • Fork the project and submit a Pull Request if you would like to contribute to the project.

  • Automated tests for the GitHub action present in the separate repo here splunk-app-action-test-app

How to generate tag

  • Create a new tag and push the tag from git:

    git tag -a -m "v2" v2
    git push --follow-tags
    
  • Update the tag from one commit to other:

    git tag -f -a -m "v1.12" v1.12
    git push -f --tags
    git push -f --follow-tags
    
  • To delete tag

    git tag -d v1.12
    git push --delete origin v1.12
    

How to run python test-cases locally

python -m pip install --upgrade pip
python -m pip install -r tests/requirements.txt
pytest tests --junitxml=junit/test-results.xml --cov=src --cov-config=tests/.coveragerc --cov-report=xml

Note from actions/upload-artifact - Zipped Artifact Downloads

During a workflow run, files are uploaded and downloaded individually using the upload-artifact and download-artifact actions. However, when a workflow run finishes and an artifact is downloaded from either the UI or through the download api, a zip is dynamically created with all the file contents that were uploaded. There is currently no way to download artifacts after a workflow run finishes in a format other than a zip or to download artifact contents individually. One of the consequences of this limitation is that if a zip is uploaded during a workflow run and then downloaded from the UI, there will be a double zip created.