Commit graph

19 commits

Author SHA1 Message Date
Franz Diebold
9d7426b893 Truncate slug values to 63 characters. 2022-09-11 14:19:45 +00:00
Franz Diebold
0f5d8f2c0f Fix CI_PR_SHA. 2022-07-17 20:50:53 +00:00
Vladimir Starkov
e59d29ab3b Expose an actual SHA for pull requests as CI_PR_SHA(_SHORT).
Default CI_SHA/GITHUB_SHA is the sha of _expect-to-be_ merge/squash/etc commit of the pull requests,
and it can be very confusing. If you mark you artifacts with it, its very hard to trace back what was the actual commit.

CI_PR_SHA is the way I solved it for my use cases and I can see im not the first one with this problem.

Fixes #30
2022-07-12 10:21:56 +02:00
Vladimir Starkov
ad0bd50c16 Expose pull request id as CI_PR_NUMBER and CI_PR_ID
Right now the closest this action offers `CI_REF_NAME_SLUG` which is `42-merge`, but its not clean and more importantly cannot be used in numerical contexts which would benefit from having that as `42`. if current event is not a pull-request, it should be empty
2022-07-05 17:39:22 +02:00
Franz Diebold
8551cab55e Add pull request infos to environment variables. 2021-05-03 10:24:10 +02:00
Franz Diebold
fe6a8b85a8 Fix linting error. 2021-05-02 20:11:22 +02:00
Franz Diebold
7e0cd65d2a Remove warnings. 2021-05-02 19:50:33 +02:00
Franz Diebold
b955ef30ad Add more environment variables. 2020-12-04 07:14:10 +01:00
Franz Diebold
5bb07c02c1 Rename environment variables to follow the naming conventions from GitHub. 2020-12-01 12:41:42 +01:00
Franz Diebold
b3b0187d73 Add more environment variables. 2020-11-26 20:44:14 +01:00
Franz Diebold
ad44217b03 Fix typo. 2020-07-16 11:38:50 +02:00
Franz Diebold
19929f6cd1 Add slug values. 2020-07-16 11:13:18 +02:00
Franz Diebold
932bbbde38 Add tests and CI. 2020-07-14 12:06:58 +02:00
Franz Diebold
38d00ef958 Fix GitHub ref for branches with slash. 2020-07-14 10:27:45 +02:00
Franz Diebold
fba151b9d9 Switch to JavaScript action. 2020-07-13 12:12:00 +02:00
Franz Diebold
dbbf375c45 Switch to a Docker container action. 2020-02-11 10:30:39 +01:00
Franz Diebold
64bf94c273 Fix environment variable export. 2020-02-11 08:56:10 +01:00
Franz Diebold
7fed643c47 Add info logging. 2020-02-10 23:14:54 +01:00
Franz Diebold
fc6622d8ba Initial commit. 2020-02-10 22:41:27 +01:00