title: How to replace a API key with a Secret in code during Github Actions Job?
body: <p>I usually hide my API key in an XML file and use <code>.gitignore</code> along with <code>getString()</code> to retrieve my API key.    </p>
  
  <p>I'm trying to use Github Actions to automate Gradle build and Release of debug apk's. Due to the XML file not being uploaded to the repo, it obviously fails.    </p>
  
  <p>Is there any way to store my key in Github Secrets and then replace the code with the secret? </p>
  
  <p>Current code: <code>headers["token"]= getString(R.string.token)</code><br>
  Replaced code in Github actions server : <code>headers["token"]="MY_API_KEY_FROM_SECRETS"</code></p>
  
  <p>Here's my YAML file that I was using:</p>
  
  <pre><code>name: Gradle build test and release
  on:
    push:
      branches: [ master ]
    pull_request:
      branches: [ master ]
  jobs:
    build:
      runs-on: ubuntu-latest
      steps:
      - uses: actions/checkout@v2
      - name: set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
     #I'd like to replace the api key here in code from secrets
      - name: Make Gradle executable
        run: chmod +x ./gradlew
      - name: Build with Gradle
        run: ./gradlew build
      - name: Build Debug APK
        run: ./gradlew assembleDebug
      - name: Releasing using Hub
        uses: ShaunLWM/action-release-debugapk@master
        env:
         GITHUB_TOKEN: ${{ secrets.TOKEN }}
         APP_FOLDER: app
         RELEASE_TITLE: New Build
         BODY: github.event.head_commit.message
         prerelease: true
  </code></pre>