Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
feliciachang committed May 30, 2024
1 parent a8822cc commit e168d94
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/actions/publish-to-jamsocket/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ runs:
echo "DOCKER_BUILD_CONTEXT: ${{ inputs.DOCKER_BUILD_CONTEXT }}"
echo "DOCKERFILE_PATH: ${{ inputs.DOCKERFILE_PATH }}"
- name: Set JAMCR_USER from token
env:
JAMSOCKET_TOKEN: ${{ secrets.JAMSOCKET_TOKEN }}
id: token_public
run: echo "JAMCR_USER=${JAMSOCKET_TOKEN%\.*}" >> $GITHUB_ENV
- name: Set JAMCR_USER from token
shell: bash
run: |
JAMSOCKET_API_TOKEN=${{ inputs.JAMSOCKET_API_TOKEN }}
JAMCR_USER="${JAMSOCKET_API_TOKEN%%.*}"
echo "JAMCR_USER: $JAMCR_USER"
echo "JAMCR_USER=${JAMCR_USER}" >> $GITHUB_ENV
- name: Set JAMCR_USER from token
shell: bash
run: |
JAMCR_USER=${{ inputs.JAMSOCKET_API_TOKEN%%.* }}
echo "JAMCR_USER: $JAMCR_USER"
echo "JAMCR_USER=${JAMCR_USER}" >> $GITHUB_ENV
- name: Set JAMCR_PASS from token
shell: bash
run: |
JAMSOCKET_API_TOKEN=${{ inputs.JAMSOCKET_API_TOKEN }}
JAMCR_PASS="${JAMSOCKET_API_TOKEN#*.}"
echo "JAMCR_PASS: $JAMCR_PASS"
echo "JAMCR_PASS=${JAMCR_PASS}" >> $GITHUB_ENV

0 comments on commit e168d94

Please sign in to comment.