Skip to content

Commit 998fb10

Browse files
FilippoZazzeroniFilippo
and
Filippo
authored
Refactor README update workflow to be run on macos machine (#23033)
* Updated reamde current tech stack action to be run on macos to solve issues in the pipeline, updated README with script * Corrected update reamde pipeline --------- Co-authored-by: Filippo <fzazzeroni@mozilla.com>
1 parent 242a1a4 commit 998fb10

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/update_readme_current_tech_stack.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
update_readme_with_current_stack:
10-
runs-on: ubuntu-latest
10+
runs-on: macos-latest
1111

1212
steps:
1313
- name: Checkout code

update_readme_project_stack.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ function sed_into_readme() {
3737
PROJECT_FIREFOX_FILE="firefox-ios/Client.xcodeproj/project.pbxproj"
3838
PROJECT_FOCUS_FILE="focus-ios/Blockzilla.xcodeproj/project.pbxproj"
3939
BIT_RISE_FILE="bitrise.yml"
40-
XCODE_VERSION=$(grep "stack:" $BIT_RISE_FILE | head -n 1 | grep -o '\d\d.\d')
40+
# Grepping the tail of Bitrise file since contains the correct Xcode version
41+
XCODE_VERSION=$(grep "stack:" $BIT_RISE_FILE | tail -n 1 | grep -o '\d\d.\d')
4142
DEPLOYMENT_TARGET_FIREFOX=$(deployment_target $PROJECT_FIREFOX_FILE)
4243
DEPLOYMENT_TARGET_FOCUS=$(deployment_target $PROJECT_FOCUS_FILE)
4344
README_FILE="README.md"

0 commit comments

Comments
 (0)