Skip to content

Commit

Permalink
us of setting secrets: inherit
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinerSchinkoethe committed Jan 28, 2025
1 parent 8579270 commit 67776c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/renovate-manuall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
manually-renovate-call:
uses: simatic-ax/renovate-config/.github/workflows/reusable-renovate-workflow.yml@feat/different_renovate_trigger
secrets: inherit
with:
renovate_reposetory_filter: "simatic-ax/ae-hw-engineering" #"simatic-ax/*"
apax_token: ${{ secrets.APAX_TOKEN }}

9 changes: 3 additions & 6 deletions .github/workflows/reusable-renovate-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
"This fills the setting autodiscoverFilter of renovate. The name of the reprosetory from which the job was called should be written here, according to the scheme 'simatic-ax/reprosetory_name'"
required: true
type: string
secrets:
apax_token:
required: true

jobs:
renovate:
Expand All @@ -22,7 +19,7 @@ jobs:
- name: "Setup the apax runner"
uses: simatic-ax/actions/setup-apax-runner@main
with:
APAX_TOKEN: ${{ secrets.apax_token }}
APAX_TOKEN: ${{ secrets.APAX_TOKEN }}

- name: "Login to simatic-ax registry"
run: |
Expand All @@ -31,10 +28,10 @@ jobs:
- name: install_apax_and_set_variables
shell: bash
env:
APAX_TOKEN: ${{ secrets.apax_token }}
APAX_TOKEN: ${{ secrets.APAX_TOKEN }}
RENOVATE_REPOSETORY_FILTER: ${{ inputs.renovate_reposetory_filter }}
run: |
curl -H "Authorization: Bearer $apax_token" "https://api.simatic-ax.siemens.io/apax/login?format=npmrc" -o .npmrc
curl -H "Authorization: Bearer $APAX_TOKEN" "https://api.simatic-ax.siemens.io/apax/login?format=npmrc" -o .npmrc
# Store the npmrc file in the RENOVATE_NPMRC variable so that it can be used in the next step:
{
echo 'RENOVATE_NPMRC<<EOF'
Expand Down

0 comments on commit 67776c0

Please sign in to comment.