Skip to content

Commit

Permalink
Cleanup the commitlies code (facebook#38889)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#38889

As we don't really use the commitlies code in CircleCI, I'm cleaning up some of the code used to publish artifacts to the user.

Changelog:
[Internal] [Changed] - Cleanup the commitlies code

Reviewed By: cipolleschi

Differential Revision: D48189398

fbshipit-source-id: c4591ee290eba49224322d44a32052ff292ccbed
  • Loading branch information
cortinico authored and facebook-github-bot committed Aug 9, 2023
1 parent 5140d64 commit 0a84952
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 115 deletions.
19 changes: 2 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ references:
environment:
- GIT_COMMIT_DESC: git log --format=oneline -n 1 $CIRCLE_SHA1
# The public github tokens are publicly visible by design
- PUBLIC_PULLBOT_GITHUB_TOKEN_A: &github_pullbot_token_a "a6edf8e8d40ce4e8b11a"
- PUBLIC_PULLBOT_GITHUB_TOKEN_B: &github_pullbot_token_b "150e1341f4dd9c944d2a"
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_A: &github_analysisbot_token_a "312d354b5c36f082cfe9"
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_B: &github_analysisbot_token_b "07973d757026bdd9f196"
# Homebrew currently breaks while updating:
Expand All @@ -36,8 +34,6 @@ references:
# Repeated here, as the environment key in this executor will overwrite the one in defaults
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_A: *github_analysisbot_token_a
- PUBLIC_ANALYSISBOT_GITHUB_TOKEN_B: *github_analysisbot_token_b
- PUBLIC_PULLBOT_GITHUB_TOKEN_A: *github_pullbot_token_a
- PUBLIC_PULLBOT_GITHUB_TOKEN_B: *github_pullbot_token_b

hermes_workspace_root: &hermes_workspace_root
/tmp/hermes
Expand Down Expand Up @@ -1914,7 +1910,7 @@ jobs:
paths:
- maven-local

# START: Commitlies
# START: Dry-run
# Provide a react-native package for this commit as a Circle CI release artifact.
- when:
condition:
Expand All @@ -1936,18 +1932,7 @@ jobs:
root: .
paths:
- build/*
# END: Commitlies

# START: Commits from pull requests
# When building commits from pull requests, leave a comment on the PR with a link to build artifacts
- when:
condition:
matches: { pattern: '^pull\/.*$', value: << pipeline.git.branch >> }
steps:
- run:
name: Post link to PR build artifacts (pull-bot)
command: GITHUB_TOKEN="$PUBLIC_PULLBOT_GITHUB_TOKEN_A""$PUBLIC_PULLBOT_GITHUB_TOKEN_B" scripts/circleci/post-artifacts-link.sh || true
# END: Commits from pull requests
# END: Dry-run

# START: Stable releases
- when:
Expand Down
86 changes: 0 additions & 86 deletions packages/react-native-bots/post-artifacts-link.js

This file was deleted.

12 changes: 0 additions & 12 deletions scripts/circleci/post-artifacts-link.sh

This file was deleted.

0 comments on commit 0a84952

Please sign in to comment.