From 8f33816dfcb0cb1d03d29cf72cc5430c1d245200 Mon Sep 17 00:00:00 2001 From: PTKu <61538034+PTKu@users.noreply.github.com> Date: Wed, 22 Jan 2025 07:48:53 +0100 Subject: [PATCH 1/2] Create draft PR for #361 From cfa8fae9cf8e3560ad4e3a0826f479415c47f64e Mon Sep 17 00:00:00 2001 From: PTKu <61538034+PTKu@users.noreply.github.com> Date: Wed, 22 Jan 2025 07:50:23 +0100 Subject: [PATCH 2/2] Removes legacy gh action workflows --- .github/actions/apax-build/action.yml | 26 --------- .github/actions/setup-apax-runner/action.yml | 56 -------------------- .github/issue-branch.yml | 3 -- .github/workflows/create_issue.yml | 17 ------ 4 files changed, 102 deletions(-) delete mode 100644 .github/actions/apax-build/action.yml delete mode 100644 .github/actions/setup-apax-runner/action.yml delete mode 100644 .github/issue-branch.yml delete mode 100644 .github/workflows/create_issue.yml diff --git a/.github/actions/apax-build/action.yml b/.github/actions/apax-build/action.yml deleted file mode 100644 index 8a60500dd..000000000 --- a/.github/actions/apax-build/action.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: "Building an apax library or application" -description: "Builds the package and returns it as an artifact" -inputs: - APAX_TOKEN: - required: true - description: "The access token is used to log into the apax registry in order to retrieve apax npm package" - -runs: - using: "composite" - steps: - - name: Show contents of folder - shell: bash - run: | - pwd - ls -a - - name: Login to apax repository - run: apax login --password ${{ inputs.APAX_TOKEN }} - shell: bash - - - name: Install apax dependencies - run: apax install --update-lockfile - shell: bash - - - name: Build apax package - shell: bash - run: apax build diff --git a/.github/actions/setup-apax-runner/action.yml b/.github/actions/setup-apax-runner/action.yml deleted file mode 100644 index af91ac282..000000000 --- a/.github/actions/setup-apax-runner/action.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: "Setup the apax environment" -description: "Installs apax and needed software on the runner in order to test, build, pack and release apax packages" -inputs: - APAX_TOKEN: - required: true - description: "The access token is used to log into the apax registry in order to retrieve apax npm package" - -runs: - using: "composite" - steps: - - shell: bash - run: | - echo "No cache hit, setup from scratch" - - name: install_apax - shell: bash - env: - APAX_TOKEN: ${{ inputs.APAX_TOKEN }} - SCRIPT_PATH: actions - run: | - sudo curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && \ - sudo apt-get install --assume-yes --no-install-recommends \ - libtinfo5 \ - git - npm -v - node -v - sudo mkdir apax-dep - sudo npm config set prefix "~/.local/" - sudo mkdir -p ~/.local/bin - sudo echo 'export PATH=~/.local/bin/:$PATH' >>~/.bashrc - sudo npm init -y - sudo curl -H "Authorization: bearer $APAX_TOKEN" "https://api.simatic-ax.siemens.io/apax/login?format=npmrc" -o .npmrc --verbose - sudo npm add @ax/apax-signed - sudo npm install - cd node_modules/@ax/apax-signed - ls -a - echo "-----BEGIN PUBLIC KEY-----" \ - >public.pem - sudo echo "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4m2LqXil8zyn+Z9v0J93" \ - >>public.pem - echo "03hNjjrw6JMKvj0skNJvSaNPq1cYwq1Q/cu86Ny/Wl+lJT+Nzl32oKcgPuU+eY1Z" \ - >>public.pem - echo "VTm9ZYPmIuoO+WPEsW5v1q8u7LURJt5jMxyfVQLXakUzkrjdQY+8/fO77R/s7ndi" \ - >>public.pem - echo "qOXvoDw4SC8RAcbFVoske7R9L8nr8+lAjyOAs7fcWEOAkXaFF3BNIddxAGtAjXr5" \ - >>public.pem - echo "5y+ecHh0wom+diN3RdSDk5TqKl9F8lThAqd8LjFxRcjaeaKftruTB9yd+ppN/4wl" \ - >>public.pem - echo "avwaTQ/7eYHbvNV5aYeELUzxFykhsqKlIeo93y/ncnU0xS7W6ccCvNJ74kRfRtJY" \ - >>public.pem - echo "WwIDAQAB" \ - >>public.pem - echo "-----END PUBLIC KEY-----" \ - >>public.pem - sudo openssl dgst -sha256 -verify public.pem -signature ax-apax.sig ax-apax-*.tgz - npm install --global ax-apax-*.tgz --verbose - apax --version diff --git a/.github/issue-branch.yml b/.github/issue-branch.yml deleted file mode 100644 index 2c57abf67..000000000 --- a/.github/issue-branch.yml +++ /dev/null @@ -1,3 +0,0 @@ -mode: chatops -branchName: '${issue.number}-${issue.title}' -openDraftPR: true \ No newline at end of file diff --git a/.github/workflows/create_issue.yml b/.github/workflows/create_issue.yml deleted file mode 100644 index 806772f21..000000000 --- a/.github/workflows/create_issue.yml +++ /dev/null @@ -1,17 +0,0 @@ -on: - issues: - types: [assigned] - issue_comment: - types: [created] - pull_request: - types: [closed] - -jobs: - create_issue_branch_job: - runs-on: ubuntu-latest - steps: - - name: Create Issue Branch - uses: robvanderleek/create-issue-branch@main - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} -