When running the action-release Github Action, occasionally one might need to perform auto-detection of associated commits in a directory other than the job's working directory, such as in the case where an action performs multiple checkouts. As Github Actions do not, by default, support the ability to run an action in any directory other than the job's working directory, this change implements an argument for specifying which directory to gather sentry release information from.
17 lines
676 B
YAML
17 lines
676 B
YAML
name: "Use local Dockerfile"
|
|
description: "Use the local Dockerfile to test the action instead of the one on DockerHub"
|
|
inputs:
|
|
working_directory:
|
|
description: 'Directory to manipulate Dockerfile in'
|
|
required: true
|
|
default: '.'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Replace image on action.yml
|
|
shell: bash
|
|
run: |
|
|
mv ${{inputs.working_directory}}/action.yml ${{inputs.working_directory}}/previous.yml
|
|
sed "s|docker://ghcr.io/getsentry/action-release-image:latest|Dockerfile|" ${{inputs.working_directory}}/previous.yml >> ${{inputs.working_directory}}/action.yml
|
|
grep "image" ${{inputs.working_directory}}/action.yml
|