Github Repository 에서 파일 찾기: Go files 를 선택하고 파일 이름을 찾는다

Actions - Gradle 에서 private properties 처리 방법

참조:StackOverflow

  1. Private 파일 Base64 인코딩: base64 secrets.properties
  2. Github actions secrets 에 추가
  3. actions yml 에 추가 ```yml
    • name: Decode secrets.properties file env: SECRETS_PROPERTIES: $ run: echo “$SECRETS_PROPERTIES” | base64 -d > ./secrets.properties ```
  4. gradle 에서 로드한다
     def secretsPropertiesFile = rootProject.file("./secrets.properties")
     def secretsProperties = new Properties()
     secretsProperties.load(new FileInputStream(secretsPropertiesFile))
    

Actions - 산출물 저장

- name: Upload APK
  uses: actions/upload-artifact@v2
  with:
    name: app
    path: app/build/outputs/apk/debug/app-debug.apk

Github API

Personal Access Token (PAT) : Settings - Developer settings - Personal access tokens 에서 PAT 를 얻을 수 있다.

API listup

curl -v -H "Authorization: token $GITHUB_TOKEN" https://github.com/api/v3

HATEOAS 스러운 응답이 내려온다. 멋지다.

{
  "current_user_url": "https://github.com/api/v3/user",
  "current_user_authorizations_html_url": "https://github.com/settings/connections/applications{/client_id}",
  "authorizations_url": "https://github.com/api/v3/authorizations",
  "code_search_url": "https://github.com/api/v3/search/code?q={query}{&page,per_page,sort,order}",
  "commit_search_url": "https://github.com/api/v3/search/commits?q={query}{&page,per_page,sort,order}",
  "emails_url": "https://github.com/api/v3/user/emails",
  "emojis_url": "https://github.com/api/v3/emojis",
  "events_url": "https://github.com/api/v3/events",
  "feeds_url": "https://github.com/api/v3/feeds",
  "followers_url": "https://github.com/api/v3/user/followers",
  "following_url": "https://github.com/api/v3/user/following{/target}",
  "gists_url": "https://github.com/api/v3/gists{/gist_id}",
  "hub_url": "https://github.com/api/v3/hub",
  "issue_search_url": "https://github.com/api/v3/search/issues?q={query}{&page,per_page,sort,order}",
  "issues_url": "https://github.com/api/v3/issues",
  "keys_url": "https://github.com/api/v3/user/keys",
  "notifications_url": "https://github.com/api/v3/notifications",
  "organization_repositories_url": "https://github.com/api/v3/orgs/{org}/repos{?type,page,per_page,sort}",
  "organization_url": "https://github.com/api/v3/orgs/{org}",
  "public_gists_url": "https://github.com/api/v3/gists/public",
  "rate_limit_url": "https://github.com/api/v3/rate_limit",
  "repository_url": "https://github.com/api/v3/repos/{owner}/{repo}",
  "repository_search_url": "https://github.com/api/v3/search/repositories?q={query}{&page,per_page,sort,order}",
  "current_user_repositories_url": "https://github.com/api/v3/user/repos{?type,page,per_page,sort}",
  "starred_url": "https://github.com/api/v3/user/starred{/owner}{/repo}",
  "starred_gists_url": "https://github.com/api/v3/gists/starred",
  "team_url": "https://github.com/api/v3/teams",
  "user_url": "https://github.com/api/v3/users/{user}",
  "user_organizations_url": "https://github.com/api/v3/user/orgs",
  "user_repositories_url": "https://github.com/api/v3/users/{user}/repos{?type,page,per_page,sort}",
  "user_search_url": "https://github.com/api/v3/search/users?q={query}{&page,per_page,sort,order}"
}

repository listup

curl -v -H "Authorization: token $GITHUB_TOKEN" https://github.com/api/v3/orgs/FinancePlatform/repos?per_page=100