Skip to content

Commit

Permalink
Update pbrp-organization-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SathamHussainM committed Jan 19, 2022
1 parent 66feade commit c965fa6
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/pbrp-organization-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ env:
CHANGELOG: ${{ github.event.inputs.ChangeLogs }}
BOT_API: ${{ secrets.BOT_API }}
GCF_AUTH_KEY: ${{ secrets.GCF_AUTH_KEY }}
GH_BOT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_BOT_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
GitHubMail: ${{ secrets.GitHubMail }}
GitHubName: ${{ secrets.GitHubName }}
SFPassword: ${{ secrets.SFPassword }}
SFUserName: ${{ secrets.SFUserName }}
#TARGET: "define this if your target is not recoveryimage"
TARGET: "pbrp"
#EXTRA_CMD: "Extra Commands Here"

jobs:
Expand All @@ -30,20 +30,34 @@ jobs:
runs-on: ubuntu-20.04

steps:
- name: Cleaning Up Runner
uses: rokibhasansagar/slimhub_actions@main

- name: Auto Adapt Manifest
# /* if your branch name is other than the one which you dispatched workflow from then set it manually in the place of ${GITHUB_REF##*/}" */
run: echo "MANIFEST=https://github.com/PitchBlackRecoveryProject/manifest_pb -b ${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Export Vars
run: |
if [[ ${BUILD_RELEASE_TYPE} == "TEST" ]]; then echo "TEST_BUILD=true" >> $GITHUB_ENV;fi
if [[ ${BUILD_RELEASE_TYPE} == "BETA" ]]; then echo "BETA_BUILD=true" >> $GITHUB_ENV;fi
if [[ ${BUILD_RELEASE_TYPE} == "OFFICIAL" ]]; then echo "PB_OFFICIAL=true" >> $GITHUB_ENV;fi
- name: Checkout Cleaning Up Runner Repo
uses: actions/checkout@v2
with:
repository: PitchBlackRecoveryProject/Cleaner
ref: main
token: ${{ secrets.GH_BOT_TOKEN }}
path: .github/actions/Cleaner
- name: Cleaning
uses: ./.github/actions/Cleaner

- name: Checkout Recovery Compiler Repo
uses: actions/checkout@v2
with:
repository: PitchBlackRecoveryProject/Compiler
ref: production
token: ${{ secrets.GH_BOT_TOKEN }}
path: .github/actions/Compiler
- name: Recovery Compilation
uses: Carbonatedblack/Recovery-Compiler@production
uses: ./.github/actions/Compiler

- name: Release Builds
run: |
Expand Down

0 comments on commit c965fa6

Please sign in to comment.