Skip to content

Bump Internal Release #7

Bump Internal Release

Bump Internal Release #7

name: Bump Internal Release
on:
workflow_dispatch:
inputs:
asana-task-url:
description: "Asana release task URL"
required: true
type: string
jobs:
increment_build_number:
name: Increment Build Number
runs-on: macos-13
timeout-minutes: 60
steps:
- name: Assert release branch
run: |
case "${{ github.ref }}" in
refs/heads/release/*) ;;
*) echo "👎 Not a release branch"; exit 1 ;;
esac
- name: Check out the code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set cache key hash
run: |
has_only_tags=$(jq '[ .pins[].state | has("version") ] | all' DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved)
if [[ "$has_only_tags" == "true" ]]; then
echo "cache_key_hash=${{ hashFiles('DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }}" >> $GITHUB_ENV
else
echo "Package.resolved contains dependencies specified by branch or commit, skipping cache."
fi
- name: Cache SPM
if: env.cache_key_hash
uses: actions/cache@v3
with:
path: DerivedData/SourcePackages
key: ${{ runner.os }}-spm-Non-Sandbox-${{ env.cache_key_hash }}
restore-keys: |
${{ runner.os }}-spm-Non-Sandbox
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_$(<.xcode-version).app/Contents/Developer
- name: Prepare fastlane
run: bundle install
- name: Install xcbeautify
continue-on-error: true
run: brew install xcbeautify
- name: Increment build number
env:
APPLE_API_KEY_BASE64: ${{ secrets.APPLE_API_KEY_BASE64 }}
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
APPLE_API_KEY_ISSUER: ${{ secrets.APPLE_API_KEY_ISSUER }}
run: |
git config --global user.name "Dax the Duck"
git config --global user.email "[email protected]"
bundle exec fastlane bump_internal_release
prepare_release:
needs: increment_build_number
uses: ./.github/workflows/release.yml

Check failure on line 74 in .github/workflows/bump_internal_release.yml

View workflow run for this annotation

GitHub Actions / Bump Internal Release

Invalid workflow file

The workflow is not valid. .github/workflows/bump_internal_release.yml (Line: 74, Col: 11): Secret BUILD_CERTIFICATE_BASE64 is required, but not provided while calling. .github/workflows/bump_internal_release.yml (Line: 74, Col: 11): Secret P12_PASSWORD is required, but not provided while calling.
with:
asana-task-url: ${{ github.event.inputs.asana-task-url }}