From af4b6088ac999e06683c88147343df6815e87719 Mon Sep 17 00:00:00 2001 From: Max! Date: Wed, 1 Nov 2023 15:35:22 +0100 Subject: [PATCH] Update example-licenses-pipeline.yml --- .../workflows/example-licenses-pipeline.yml | 30 ++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/.github/workflows/example-licenses-pipeline.yml b/.github/workflows/example-licenses-pipeline.yml index 70baf37..9928a53 100644 --- a/.github/workflows/example-licenses-pipeline.yml +++ b/.github/workflows/example-licenses-pipeline.yml @@ -68,6 +68,7 @@ jobs: SELENIUM_IMAGE: ${{github.event.inputs.selenium_image}} EDITOR_VERSION: ${{github.event.inputs.editor_version}} HEADLESS: ${{github.event.inputs.headless}} + #- name: Store and Mask License Data # run: | # UNITY_LICENSE=$(cat *.ulf) @@ -78,13 +79,6 @@ jobs: # EDITOR_VERSION: ${{github.event.inputs.editor_version}} # EDITOR_IMAGE: ${{github.event.inputs.editor_image}} - #- name: Add License as a Github Actions Secret - # uses: hmanzur/actions-set-secret@v2.0.0 - # with: - # name: 'UNITY_LICENSE' - # value: echo "$UNITY_LICENSE" - # token: ${{ secrets.PAT }} - #- name: Return Secret as file # run: | # sudo echo "$UNITY_LICENSE" > /tmp/Unity_v2022.x.ulf @@ -92,6 +86,28 @@ jobs: # env: # UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + #- name: get a token + # run: | + # curl -L \ + # -H "Accept: application/vnd.github+json" \ + # -H "Authorization: Bearer " \ + # -H "X-GitHub-Api-Version: 2022-11-28" \ + # https://api.github.com/orgs/ORG/actions/secrets/public-key + + #- name: encrypt secret + + #- name: Create new repository secret + # run: | + # curl -X PUT \ + # -H "Accept: application/vnd.github.v3+json" \ + # -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + # https://api.github.com/repos/$OWNER/$REPO/actions/secrets/$SECRET_NAME \ + # -d '{"encrypted_value":"","key_id":""}' + # env: + # OWNER: "buildstar-online" + # REPO: "unity-self-auth" + # SECRET_NAME: "TEST_LICENSE" + - name: Activate License run: | ls -hal && \