Pass in branch as a custom header to update the website (#178)
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Reviewed-on: #178 Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca> Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
This commit is contained in:
parent
b6d0544e3e
commit
59175478f5
|
@ -45,10 +45,7 @@ steps:
|
|||
TOKEN:
|
||||
from_secret: STAGING_TOKEN
|
||||
commands:
|
||||
- 'curl -XPOST -H "Authorization: $TOKEN" "https://csclub.uwaterloo.ca/~a3thakra/update-csc/"'
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
- 'curl -XPOST -H "Authorization: $TOKEN" -H "X-Branch: $DRONE_BRANCH" "https://csclub.uwaterloo.ca/~a3thakra/update-csc/"'
|
||||
|
||||
trigger:
|
||||
event:
|
||||
|
|
Loading…
Reference in New Issue