Skip to content

Commit

Permalink
Merge pull request #7 from bettermarks/no-docker
Browse files Browse the repository at this point in the history
refactor: move from docker to composite action
  • Loading branch information
ramonziai authored Oct 13, 2023
2 parents d621d28 + 0dafac3 commit 3e6c348
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
14 changes: 0 additions & 14 deletions Dockerfile

This file was deleted.

25 changes: 23 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,30 @@ inputs:
outputs:
commit:
description: 'The commit sha corresponding to the artifact'
value: ${{ steps.main.outputs.commit }}
success:
description: 'Indicates success of the action'
value: ${{ steps.main.outputs.success }}
error:
description: 'Indicates if there was an error'
value: ${{ steps.main.outputs.error }}
runs:
using: 'docker'
image: 'Dockerfile'
using: 'composite'
steps:
- name: install requirements
shell: bash
run: pip install requests
- name: download artifact
id: main
shell: bash
env:
INPUT_TOKEN: ${{ inputs.token }}
INPUT_ARTIFACT_NAME: ${{ inputs.artifact_name }}
INPUT_RENAME: ${{ inputs.rename }}
INPUT_REPO: ${{ inputs.repo }}
INPUT_WAIT_SECONDS: ${{ inputs.wait_seconds }}
run: python main.py

branding:
color: 'yellow'
icon: 'download'

0 comments on commit 3e6c348

Please sign in to comment.