selective-ruby-core 0.2.4-x86_64-darwin → 0.2.5-x86_64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf4ede6530f65732361cb3edca6e3bf1fe1b75702d42460710248e6afd77d042
4
- data.tar.gz: 8d09d05ec38cc9aea45834835bd98fe6d94f7387d06cfa337d632ba97c68b69d
3
+ metadata.gz: 5536c0a574996038ca22803e7fb0e267a8446acd57d95e8ce87fb798a7c54e68
4
+ data.tar.gz: a6bdd0dcf08a85e176d884cfbcf75cc3f1dbfd34af7dc30deab292ffd36f37d3
5
5
  SHA512:
6
- metadata.gz: 27a5595b47add478a1c99c71f7574a66b6fbe0cf8deafb503bedd48f61302397469658b7f0d9cc71c147668980a50169c48c2e4a3c912afb0a6ed8dab3088429
7
- data.tar.gz: 5f1a0a6a1644f4193eb2d29eaf820278a7a74b96a0f1c8a49e2b3e7623485379b7f1f207285c145120a97f9dabb69308c4a1bbf64f3b4836102420f016b531a3
6
+ metadata.gz: d19b5b52798a86d75f1eee9f38d3cdedf9c086a43d6a0d14e2c55fb6e7e3e7399de8f08059b0b387b01a58c65082f618ca13a51825bc03fad29e7699bd5e38f3
7
+ data.tar.gz: f6f47d179d7580c7b4c1032e87ce2294b5ea3eb83ce89afeaf55366c063a2b71b3794d91e908fcf8c66d1c731c168f0b8e5e85df5c006016bae9ee28295b2b00
data/lib/bin/build_env.sh CHANGED
@@ -10,6 +10,9 @@ if [ -n "$GITHUB_ACTIONS" ]; then
10
10
  run_id=$GITHUB_RUN_ID
11
11
  run_attempt=$GITHUB_RUN_ATTEMPT
12
12
  runner_id=$SELECTIVE_RUNNER_ID
13
+ commit_message=$(git log --format=%s -n 1 $sha)
14
+ committer_name=$(git show -s --format='%an' -n 1 $sha)
15
+ committer_email=$(git show -s --format='%ae' -n 1 $sha)
13
16
  elif [ -n "$CIRCLECI" ]; then
14
17
  platform=circleci
15
18
  branch=$CIRCLE_BRANCH
@@ -17,6 +20,9 @@ elif [ -n "$CIRCLECI" ]; then
17
20
  sha=$CIRCLE_SHA1
18
21
  run_attempt=$CIRCLE_BUILD_NUM
19
22
  runner_id=$CIRCLE_NODE_INDEX
23
+ commit_message=$(git log --format=%s -n 1 $sha)
24
+ committer_name=$(git show -s --format='%an' -n 1 $sha)
25
+ committer_email=$(git show -s --format='%ae' -n 1 $sha)
20
26
  elif [ -n "$SEMAPHORE" ]; then
21
27
  platform=semaphore
22
28
  branch=${SEMAPHORE_GIT_PR_BRANCH:-$SEMAPHORE_GIT_BRANCH}
@@ -29,6 +35,23 @@ elif [ -n "$SEMAPHORE" ]; then
29
35
  run_attempt=1
30
36
  runner_id=$SEMAPHORE_JOB_ID
31
37
  pr_title=$SEMAPHORE_GIT_PR_NAME
38
+ commit_message=$(git log --format=%s -n 1 $sha)
39
+ committer_name=$(git show -s --format='%an' -n 1 $sha)
40
+ committer_email=$(git show -s --format='%ae' -n 1 $sha)
41
+ elif [ -n "$MINT" ]; then
42
+ platform=mint
43
+ branch="${MINT_GIT_REF_NAME}"
44
+ actor="${MINT_ACTOR}"
45
+ sha="${MINT_GIT_COMMIT_SHA}"
46
+ run_id="${MINT_RUN_ID}"
47
+ run_attempt="${MINT_TASK_ATTEMPT_NUMBER}"
48
+ runner_id="${MINT_PARALLEL_INDEX}"
49
+ # Mint does not preserve the .git directory by default to improve the likelihood of cache hits. Instead
50
+ # of asking git for commit information, then, we rely on the mint/git-clone leaf to populate the necessary
51
+ # metadata in environment variables.
52
+ commit_message="${MINT_GIT_COMMIT_SUMMARY}"
53
+ committer_name="${MINT_GIT_COMMITTER_NAME}"
54
+ committer_email="${MINT_GIT_COMMITTER_EMAIL}"
32
55
  fi
33
56
 
34
57
  function escape() {
@@ -49,8 +72,8 @@ cat <<EOF
49
72
  "run_id": "$(escape "${SELECTIVE_RUN_ID:-$run_id}")",
50
73
  "run_attempt": "$(escape "${SELECTIVE_RUN_ATTEMPT:-$run_attempt}")",
51
74
  "runner_id": "$(escape "${SELECTIVE_RUNNER_ID:-$runner_id}")",
52
- "commit_message": "$(escape "$(git log --format=%s -n 1 $sha)")",
53
- "committer_name": "$(escape "$(git show -s --format='%an' -n 1 $sha)")",
54
- "committer_email": "$(escape "$(git show -s --format='%ae' -n 1 $sha)")"
75
+ "commit_message": "$(escape "${SELECTIVE_COMMIT_MESSAGE:-$commit_message}")",
76
+ "committer_name": "$(escape "${SELECTIVE_COMMITTER_NAME:-$committer_name}")",
77
+ "committer_email": "$(escape "${SELECTIVE_COMMITTER_EMAIL:-$committer_email}")"
55
78
  }
56
- EOF
79
+ EOF
@@ -3,7 +3,7 @@
3
3
  module Selective
4
4
  module Ruby
5
5
  module Core
6
- VERSION = "0.2.4"
6
+ VERSION = "0.2.5"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selective-ruby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Benjamin Wood
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-02-28 00:00:00.000000000 Z
12
+ date: 2024-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: zeitwerk