Skip to content

Commit

Permalink
hub debug
Browse files Browse the repository at this point in the history
  • Loading branch information
muzahidul-opti committed Dec 6, 2023
1 parent 22bde43 commit ce1152c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,20 @@ jobs:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 14.1.0
- uses: actions/checkout@v2
with:
# You should create a personal access token and store it in your repository
token: ${{ secrets.CI_USER_TOKEN }}
repository: 'optimizely/travisci-tools'
path: 'home/runner/travisci-tools'
ref: 'master'
- name: Install hub
shell: bash
env:
HOME: 'home/runner'
run: |
# installs hub to ~/bin
$HOME/travisci-tools/release_github/install_hub.sh
- name: Push to cocoapods.org
env:
HOME: 'home/runner'
Expand All @@ -105,4 +119,5 @@ jobs:
COCOAPODS_VERSION: '1.12.1'
run: |
gem install cocoapods -v $COCOAPODS_VERSION
hub version
Scripts/run_release.sh
2 changes: 2 additions & 0 deletions Scripts/run_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ END
git push -f https://${GITHUB_TOKEN}@github.com/${REPO_SLUG} ${AUTOBRANCH}

# Check hub installation
pwd
hub version
whereis hub
PR_URL=$(hub pull-request -b ${BRANCH} -h ${AUTOBRANCH} -m "${MESSAGE}")
echo -e "${COLOR_CYAN}ATTENTION:${COLOR_RESET} review and merge ${COLOR_CYAN}${PR_URL}${COLOR_RESET}"
echo "then to release to cocoapods use Git action's Trigger build with the following payload:"
Expand Down
2 changes: 1 addition & 1 deletion Scripts/run_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function install_binary {
chmod +x ~/bin/hub${windows:+.exe}
pwd
# verify
# ~/bin/hub${windows:+.exe} version
~/bin/hub${windows:+.exe} version

# cleanup
rm -rf $tmp_dir
Expand Down

0 comments on commit ce1152c

Please sign in to comment.