Skip to content

Commit

Permalink
chore: triage by merge two steps together
Browse files Browse the repository at this point in the history
  • Loading branch information
morristai committed Nov 6, 2023
1 parent 355c696 commit ece2385
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/services/swift/swift/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,11 @@ runs:
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}')
curl --location --request PUT 'http://127.0.0.1:8080/v1/AUTH_test/testing' --header "X-Auth-Token: $token"
token_var="OPENDAL_SWIFT_TOKEN=$token"
echo $(echo "$token_var" | tr -d '\n') >> $GITHUB_ENV
- name: Setup environment variables
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_SWIFT_ENDPOINT=http://127.0.0.1:8080
OPENDAL_SWIFT_ACCOUNT=AUTH_test
OPENDAL_SWIFT_CONTAINER=testing
OPENDAL_SWIFT_ROOT=/
EOF
cat << EOF >> $GITHUB_ENV
OPENDAL_SWIFT_ENDPOINT=http://127.0.0.1:8080
OPENDAL_SWIFT_ACCOUNT=AUTH_test
OPENDAL_SWIFT_CONTAINER=testing
OPENDAL_SWIFT_ROOT=/
OPENDAL_SWIFT_TOKEN=$(echo "$token" | tr -d '[:space:]')
EOF

0 comments on commit ece2385

Please sign in to comment.