From 1d8f997cd67a2c8bedc102160fb10e4a74fb132f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lech=20G=C5=82owiak?= Date: Thu, 30 Jan 2025 20:27:06 +0100 Subject: [PATCH] Cleanup some partner-chains-smart-contracts leftovers --- .../download-pcsc-artifact/action.yml | 55 ------------------- .../actions/tests/devshell-tests/action.yml | 10 +--- 2 files changed, 1 insertion(+), 64 deletions(-) delete mode 100644 .github/actions/artifacts/download-pcsc-artifact/action.yml diff --git a/.github/actions/artifacts/download-pcsc-artifact/action.yml b/.github/actions/artifacts/download-pcsc-artifact/action.yml deleted file mode 100644 index 64a08264a..000000000 --- a/.github/actions/artifacts/download-pcsc-artifact/action.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: "Parse Flake and Download PCSC Release" -description: "Extracts PCSC release info from flake.nix, constructs an artifact name, downloads, and uploads the artifact" -inputs: - sha: - description: "SHA or branch to checkout" - required: true - -runs: - using: "composite" - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ inputs.sha }} - - - name: Extract PCSC Release Info from flake.nix - shell: bash - id: extract-release - run: | - echo "Extracting PCSC release version from flake.nix..." - release=$(grep -Po 'url = "github:input-output-hk/partner-chains-smart-contracts/v\K[0-9.]+(?=";)' flake.nix) - echo "Release version: v$release" - echo "::set-output name=release::v$release" - - - name: Construct Artifact Name - shell: bash - id: construct-artifact - run: | - version_without_v=${{ steps.extract-release.outputs.release#v }} - artifact="trustless-sidechain-cli-${version_without_v}-x86_64-linux.zip" - echo "Constructed artifact name: $artifact" - echo "::set-output name=artifact::$artifact" - - - name: Download Artifact as zipped.zip - shell: bash - run: | - wget -O zipped.zip "https://github.com/input-output-hk/partner-chains-smart-contracts/releases/download/${{ steps.extract-release.outputs.release }}/${{ steps.construct-artifact.outputs.artifact }}" - - - name: Extract zipped.zip to a temporary directory - shell: bash - run: | - mkdir temp_dir - unzip zipped.zip -d temp_dir - - - name: Rename extracted directory to partner-chains-smart-contracts - shell: bash - run: | - original_dir=$(ls temp_dir) - mv "temp_dir/$original_dir" partner-chains-smart-contracts - - - name: Upload Extracted Artifact - uses: actions/upload-artifact@v4 - with: - name: partner-chains-smart-contracts-artifact - path: partner-chains-smart-contracts \ No newline at end of file diff --git a/.github/actions/tests/devshell-tests/action.yml b/.github/actions/tests/devshell-tests/action.yml index 62d9dad4c..9e27b57e5 100644 --- a/.github/actions/tests/devshell-tests/action.yml +++ b/.github/actions/tests/devshell-tests/action.yml @@ -10,14 +10,6 @@ runs: - name: Checkout code uses: actions/checkout@v4 - - name: Update flake.lock with calling PR - if: ${{ github.event_name == 'repository_dispatch' }} - run: | - nix flake lock --update-input trustless-sidechain \ - --override-input trustless-sidechain \ - github:input-output-hk/partner-chains-smart-contracts/${{ github.event.client_payload.ref }} - shell: bash - - name: Acquire AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: @@ -39,4 +31,4 @@ runs: | nix copy --stdin --to \ "s3://cache.sc.iog.io?secret-key=${{ runner.temp }}/nix-key®ion=$AWS_REGION" \ && rm /tmp/outputs - shell: bash \ No newline at end of file + shell: bash