You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/07/03 09:15:27 UTC

[camel-k-runtime] branch main updated: Update action.yml

This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git


The following commit(s) were added to refs/heads/main by this push:
     new de9ce870 Update action.yml
de9ce870 is described below

commit de9ce87044da53fda22851d461a2abfc14af2bd7
Author: Pasquale Congiusti <pa...@gmail.com>
AuthorDate: Mon Jul 3 11:15:23 2023 +0200

    Update action.yml
---
 .github/actions/automatic-updates/action.yml | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/.github/actions/automatic-updates/action.yml b/.github/actions/automatic-updates/action.yml
index 114c17ac..e4af121b 100644
--- a/.github/actions/automatic-updates/action.yml
+++ b/.github/actions/automatic-updates/action.yml
@@ -33,20 +33,17 @@ runs:
         CI_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
       run: |
         ./scripts/sync_cq.sh
+        git config --local user.email "$CI_EMAIL"
+        git config --local user.name "$CI_USER"
         git add -A && git commit -m 'feat: new Camel Quarkus version' && echo "sync=1" >> $GITHUB_ENV || echo "No changes in the release"
 
     - name: Generate changelog
       uses: ./.github/actions/changelog
       with:
-        token: ${{ secrets.GITHUB_TOKEN }}
+        token: ${{ inputs.secretGithubToken }}
         release_branch: ${{ inputs.branch-ref }}
     - name: Commit changelog files
-      env:
-        CI_USER: "github-actions[bot]"
-        CI_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
       run: |
-        git config --local user.email "$CI_EMAIL"
-        git config --local user.name "$CI_USER"
         git add CHANGELOG.md && git commit -m 'chore: update changelog' && echo "changelog=1" >> $GITHUB_ENV || echo "No changes to CHANGELOG.md"
 
     - name: Set up JDK
@@ -58,9 +55,6 @@ runs:
     - name: Build Camel-k-runtime Project for generating SBOM
       run: ./mvnw -V --no-transfer-progress clean install -DskipTests -Psbom
     - name: Commit sbom files
-      env:
-        CI_USER: "github-actions[bot]"
-        CI_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
       run: |
         git config --local user.email "$CI_EMAIL"
         git config --local user.name "$CI_USER"
@@ -70,8 +64,6 @@ runs:
       shell: bash
       if: env.sync == 1 || env.changelog == 1 || env.sbom == 1
       env:
-        CI_USER: "github-actions[bot]"
-        CI_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
         CI_TOKEN: ${{ inputs.secretGithubToken }}
       run: |
         git push "https://$CI_USER:$CI_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:${{ inputs.branch-ref }}