Skip to content

Commit

Permalink
chore: use different format to export env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
morristai committed Nov 6, 2023
1 parent 7b2053f commit 705e330
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/services/swift/swift/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:
shell: bash
run: |
token=$(curl -i -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0 | grep X-Auth-Token | head -n1 | awk '{print $2}')
# echo "OPENDAL_SWIFT_TOKEN=$token" >> $GITHUB_ENV
echo "OPENDAL_SWIFT_TOKEN=${{ token }}" >> $GITHUB_ENV
curl --location --request PUT 'http://127.0.0.1:8080/v1/AUTH_test/testing' --header "X-Auth-Token: $token"
- name: Setup environment variables
Expand All @@ -42,5 +42,4 @@ runs:
OPENDAL_SWIFT_ACCOUNT=AUTH_test
OPENDAL_SWIFT_CONTAINER=testing
OPENDAL_SWIFT_ROOT=/
OPENDAL_SWIFT_TOKEN=$token
EOF

0 comments on commit 705e330

Please sign in to comment.