Skip to content

Commit

Permalink
Remove: Avoid unnecessary repo checkout in sign-release-files
Browse files Browse the repository at this point in the history
Most of the time the action is used within release.
  • Loading branch information
bjoernricks committed May 12, 2023
1 parent d800192 commit 768f487
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion sign-release-files/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,18 @@ runs:
ARGS="${ARGS} --release-series ${{ inputs.release-series }}"
echo "ARGS=${ARGS}" >> $GITHUB_ENV
shell: bash
- uses: actions/checkout@v3
- name: Checkout exists already
id: checkout
run: |
if [[ -d "${{ github.workspace }}/.git" ]]; then
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "exists=false" >> $GITHUB_OUTPUT
fi
shell: bash
- name: Checkout repository
if: steps.checkout.outputs.exists != 'true'
uses: actions/checkout@v3
- name: Set up Python and pontos
uses: greenbone/actions/setup-pontos@v2
id: virtualenv
Expand Down

0 comments on commit 768f487

Please sign in to comment.