Skip to content

Commit

Permalink
add apax token to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinerSchinkoethe committed Jan 28, 2025
1 parent 25e8e67 commit 8579270
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/renovate-manuall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ jobs:
manually-renovate-call:
uses: simatic-ax/renovate-config/.github/workflows/reusable-renovate-workflow.yml@feat/different_renovate_trigger
with:
renovate_reposetory_filter: "simatic-ax/ae-hw-engineering" #"simatic-ax/*"
renovate_reposetory_filter: "simatic-ax/ae-hw-engineering" #"simatic-ax/*"
apax_token: ${{ secrets.APAX_TOKEN }}
9 changes: 6 additions & 3 deletions .github/workflows/reusable-renovate-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ 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 @@ -19,7 +22,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 @@ -28,10 +31,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 8579270

Please sign in to comment.