Skip to content

Commit

Permalink
Merge pull request #3569 from mercedes-benz/feature-3564-make-gha-rel…
Browse files Browse the repository at this point in the history
…ease-worflow-work

provide path to git add #3564
  • Loading branch information
sven-dmlr authored Oct 25, 2024
2 parents ccf3cb0 + ab7970f commit b058409
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-github-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ permissions:
issues: write
pull-requests: write

env:
GHACTION: github-actions/scan

jobs:
release-version:
name: Create Github Action release
Expand Down Expand Up @@ -91,7 +94,6 @@ jobs:
# ----------------------
- name: Build github-actions/scan and set package version to v${{ inputs.ghaction-version }}
run: |
GHACTION="github-actions/scan"
cd $GHACTION
echo "# $GHACTION - Update package version to ${{ inputs.ghaction-version }}"
echo "$( jq --arg a "${{ inputs.ghaction-version }}" '.version = $a' package.json )" > package.json
Expand Down Expand Up @@ -123,7 +125,7 @@ jobs:
- name: Commit build artifacts from above steps
id: github-actions_commit
run: |
git add -f dist/*
git add -f "$GHACTION"/dist/*
git commit -am "SecHub release job @github-actions for Github Action ${{ inputs.ghaction-version }} #${{ steps.release-issue.outputs.number }}" || true
COMMITS=`git log --oneline --branches --not --remotes`
echo "commits=$COMMITS" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit b058409

Please sign in to comment.