Skip to content

Commit

Permalink
Update example-licenses-pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudymax authored Nov 1, 2023
1 parent 88e6bb5 commit af4b608
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/example-licenses-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -78,20 +79,35 @@ 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/[email protected]
# 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
# shell: bash
# env:
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}

#- name: get a token
# run: |
# curl -L \
# -H "Accept: application/vnd.github+json" \
# -H "Authorization: Bearer <YOUR-TOKEN>" \
# -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":"<encrypted_value>","key_id":"<key_id>"}'
# env:
# OWNER: "buildstar-online"
# REPO: "unity-self-auth"
# SECRET_NAME: "TEST_LICENSE"

- name: Activate License
run: |
ls -hal && \
Expand Down

0 comments on commit af4b608

Please sign in to comment.