Pass in branch as a custom header to update the website (#178)
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:
Aditya Thakral 2021-08-25 00:24:53 -04:00
parent b6d0544e3e
commit 59175478f5
1 changed files with 1 additions and 4 deletions

View File

@ -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: