1 # Where the GitLab happens
4 ## Updating PERF_NOTES_PUSH_CREDENTIALS
6 This CI variable is used by test-metrics.sh to push performance data as a git
7 note to https://gitlab.haskell.org/ghc/ghc-performance-notes.
9 The current token will expire on 2025-07-02.
13 Set and fetch the updated token:
16 GITLAB_WRITE=<Your Gitlab API token>
18 one_year_later="$(date --date='1 year' --iso-8601)"
19 curl -X POST --header "PRIVATE-TOKEN: $GITLAB_WRITE" -H "Content-Type: application/json" \
20 --data '{"name":"test-metrics.sh", "scopes":["write_repository"], "expires_at":"$one_year_later"}' \
21 https://gitlab.haskell.org/api/v4/projects/117/access_tokens \
28 GITLAB_WRITE=<Your Gitlab API token>
30 NEW_VALUE=<Output from the above>
32 curl --fail-with-body --request PUT --header "PRIVATE-TOKEN: $GITLAB_WRITE" \
33 "https://gitlab.haskell.org/api/v4/projects/1/variables/PERF_NOTES_PUSH_CREDENTIALS" \
34 --form "value=$NEW_VALUE"