renovate #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: renovate | |
on: | |
workflow_dispatch: | |
# workflow_call: | |
# secrets: | |
# APAX_TOKEN: | |
# description: "Access token for installing apax sdk" | |
# required: true | |
jobs: | |
renovate: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: "Setup the apax runner" | |
uses: simatic-ax/actions/setup-apax-runner@main | |
with: | |
APAX_TOKEN: ${{ secrets.APAX_TOKEN }} | |
- name: "Login to simatic-ax registry" | |
run: | | |
apax login --registry "https://npm.pkg.github.com" --password "${{ secrets.GITHUB_TOKEN }}" | |
- name: install_apax | |
shell: bash | |
env: | |
APAX_TOKEN: ${{ secrets.APAX_TOKEN }} | |
run: | | |
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' | |
cat .npmrc | |
echo EOF | |
} >> "$GITHUB_ENV" | |
# Mask the contents of the npmrc file so that they don't appear in job logs: | |
while read -r line; | |
do | |
echo "::add-mask::${line}" | |
done < .npmrc | |
- name: Self-hosted Renovate | |
uses: renovatebot/[email protected] | |
with: | |
docker-cmd-file: Global-Config/renovate-entrypoint.sh | |
docker-user: root | |
configurationFile: Global-Config/renovate-global-config.js | |
token: ${{ secrets.RENOVATE_TOKEN }} | |
env: | |
LOG_LEVEL: debug |