-
Notifications
You must be signed in to change notification settings - Fork 11
Revert repository to commit 244d656 #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Android | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
ref: | ||
description: 'The branch to build from. E.g. main' | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
build-android: | ||
name: Android | ||
runs-on: ubuntu-latest | ||
env: | ||
APK_PATH: android/app/build/outputs/apk/release/app-release.apk | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
SENTRY_ALLOW_FAILURE: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'npm' | ||
cache-dependency-path: package-lock.json | ||
|
||
- run: npm ci | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- uses: gradle/gradle-build-action@v3 | ||
|
||
- working-directory: android | ||
run: ./gradlew :app:assembleRelease | ||
|
||
- name: Upload APK | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: empower-plant-react-native-android | ||
path: ${{ env.APK_PATH }} | ||
retention-days: 60 | ||
Original file line number | Diff line number | Diff line change | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,74 @@ | |||||||||||||||||
name: iOS | |||||||||||||||||
|
|||||||||||||||||
on: | |||||||||||||||||
workflow_call: | |||||||||||||||||
inputs: | |||||||||||||||||
ref: | |||||||||||||||||
description: 'The branch to build from. E.g. main' | |||||||||||||||||
required: false | |||||||||||||||||
type: string | |||||||||||||||||
|
|||||||||||||||||
jobs: | |||||||||||||||||
build-ios: | |||||||||||||||||
name: iOS | |||||||||||||||||
runs-on: macos-14 | |||||||||||||||||
env: | |||||||||||||||||
APP_ARCHIVE_PATH: sentry_react_native.app.zip | |||||||||||||||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |||||||||||||||||
SENTRY_ALLOW_FAILURE: false | |||||||||||||||||
steps: | |||||||||||||||||
- uses: actions/checkout@v4 | |||||||||||||||||
with: | |||||||||||||||||
ref: ${{ inputs.ref }} | |||||||||||||||||
|
|||||||||||||||||
- uses: actions/setup-node@v4 | |||||||||||||||||
with: | |||||||||||||||||
node-version: 18 | |||||||||||||||||
cache: 'npm' | |||||||||||||||||
cache-dependency-path: package-lock.json | |||||||||||||||||
|
|||||||||||||||||
- run: npm ci | |||||||||||||||||
|
|||||||||||||||||
- uses: ruby/setup-ruby@v1 | |||||||||||||||||
with: | |||||||||||||||||
ruby-version: '3.3.0' | |||||||||||||||||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |||||||||||||||||
|
|||||||||||||||||
- working-directory: ios | |||||||||||||||||
run: bundle exec pod install | |||||||||||||||||
|
|||||||||||||||||
- name: Run xcodebuild | |||||||||||||||||
working-directory: ios | |||||||||||||||||
run: | | |||||||||||||||||
mkdir -p "DerivedData" | |||||||||||||||||
derivedData="$(cd "DerivedData" ; pwd -P)" | |||||||||||||||||
set -o pipefail && xcodebuild \ | |||||||||||||||||
-workspace sentry_react_native.xcworkspace \ | |||||||||||||||||
-configuration "Release" \ | |||||||||||||||||
-scheme sentry_react_native \ | |||||||||||||||||
-destination 'generic/platform=iOS Simulator' \ | |||||||||||||||||
-derivedDataPath "$derivedData" \ | |||||||||||||||||
build \ | |||||||||||||||||
| tee xcodebuild.log \ | |||||||||||||||||
| xcbeautify --quieter --is-ci --disable-colored-output | |||||||||||||||||
- name: Archive App | |||||||||||||||||
run: | | |||||||||||||||||
cd ios/DerivedData/Build/Products/Release-iphonesimulator | |||||||||||||||||
zip -r \ | |||||||||||||||||
${{ github.workspace }}/${{ env.APP_ARCHIVE_PATH }} \ | |||||||||||||||||
sentry_react_native.app | |||||||||||||||||
- name: Upload APP | |||||||||||||||||
uses: actions/upload-artifact@v4 | |||||||||||||||||
with: | |||||||||||||||||
name: empower-plant-react-native-ios | |||||||||||||||||
path: ${{ env.APP_ARCHIVE_PATH }} | |||||||||||||||||
retention-days: 60 | |||||||||||||||||
|
|||||||||||||||||
- name: Upload logs | |||||||||||||||||
if: ${{ always() }} | |||||||||||||||||
uses: actions/upload-artifact@v4 | |||||||||||||||||
with: | |||||||||||||||||
name: build-ios-logs | |||||||||||||||||
path: ios/xcodebuild.log | |||||||||||||||||
Comment on lines
+13
to
+74
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Copilot AutofixAI about 2 months ago To fix the problem, you should add a
Suggested changeset
1
.github/workflows/build-ios.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
Original file line number | Diff line number | Diff line change | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -6,144 +6,22 @@ | ||||||||||||||||
- master | |||||||||||||||||
pull_request: | |||||||||||||||||
|
|||||||||||||||||
env: | |||||||||||||||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |||||||||||||||||
SENTRY_ALLOW_FAILURE: false | |||||||||||||||||
MAESTRO_VERSION: 1.39.0 | |||||||||||||||||
|
|||||||||||||||||
concurrency: | |||||||||||||||||
group: ${{ github.workflow }}-${{ github.ref }} | |||||||||||||||||
cancel-in-progress: true | |||||||||||||||||
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |||||||||||||||||
|
|||||||||||||||||
jobs: | |||||||||||||||||
build-android: | |||||||||||||||||
name: Android | |||||||||||||||||
runs-on: ubuntu-latest | |||||||||||||||||
steps: | |||||||||||||||||
- uses: actions/checkout@v4 | |||||||||||||||||
|
|||||||||||||||||
- uses: actions/setup-node@v4 | |||||||||||||||||
with: | |||||||||||||||||
node-version: 18 | |||||||||||||||||
cache: 'npm' | |||||||||||||||||
cache-dependency-path: package-lock.json | |||||||||||||||||
|
|||||||||||||||||
- run: npm ci | |||||||||||||||||
|
|||||||||||||||||
- uses: actions/setup-java@v4 | |||||||||||||||||
with: | |||||||||||||||||
java-version: '17' | |||||||||||||||||
distribution: 'adopt' | |||||||||||||||||
|
|||||||||||||||||
- uses: gradle/gradle-build-action@v3 | |||||||||||||||||
|
|||||||||||||||||
- working-directory: android | |||||||||||||||||
run: ./gradlew :app:assembleRelease | |||||||||||||||||
|
|||||||||||||||||
- name: Upload APK | |||||||||||||||||
uses: actions/upload-artifact@v4 | |||||||||||||||||
with: | |||||||||||||||||
name: empower-plant-react-native-android | |||||||||||||||||
path: android/app/build/outputs/apk/release/app-release.apk | |||||||||||||||||
retention-days: 60 | |||||||||||||||||
name: 'Build Android' | |||||||||||||||||
uses: ./.github/workflows/build-android.yml | |||||||||||||||||
secrets: inherit | |||||||||||||||||
|
|||||||||||||||||
build-ios: | |||||||||||||||||
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
|
|||||||||||||||||
name: iOS | |||||||||||||||||
runs-on: macos-14 | |||||||||||||||||
steps: | |||||||||||||||||
- uses: actions/checkout@v4 | |||||||||||||||||
|
|||||||||||||||||
- uses: actions/setup-node@v4 | |||||||||||||||||
with: | |||||||||||||||||
node-version: 18 | |||||||||||||||||
cache: 'npm' | |||||||||||||||||
cache-dependency-path: package-lock.json | |||||||||||||||||
|
|||||||||||||||||
- run: npm ci | |||||||||||||||||
name: 'Build iOS' | |||||||||||||||||
uses: ./.github/workflows/build-ios.yml | |||||||||||||||||
secrets: inherit | |||||||||||||||||
|
|||||||||||||||||
- uses: ruby/setup-ruby@v1 | |||||||||||||||||
with: | |||||||||||||||||
ruby-version: '3.3.0' | |||||||||||||||||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |||||||||||||||||
|
|||||||||||||||||
- working-directory: ios | |||||||||||||||||
run: bundle exec pod install | |||||||||||||||||
|
|||||||||||||||||
- name: Run xcodebuild | |||||||||||||||||
working-directory: ios | |||||||||||||||||
run: | | |||||||||||||||||
mkdir -p "DerivedData" | |||||||||||||||||
derivedData="$(cd "DerivedData" ; pwd -P)" | |||||||||||||||||
set -o pipefail && xcodebuild \ | |||||||||||||||||
-workspace sentry_react_native.xcworkspace \ | |||||||||||||||||
-configuration "Release" \ | |||||||||||||||||
-scheme sentry_react_native \ | |||||||||||||||||
-destination 'generic/platform=iOS Simulator' \ | |||||||||||||||||
-derivedDataPath "$derivedData" \ | |||||||||||||||||
build \ | |||||||||||||||||
| tee xcodebuild.log \ | |||||||||||||||||
| xcbeautify --quieter --is-ci --disable-colored-output | |||||||||||||||||
- name: Upload APP | |||||||||||||||||
uses: actions/upload-artifact@v4 | |||||||||||||||||
with: | |||||||||||||||||
name: empower-plant-react-native-ios | |||||||||||||||||
path: ios/DerivedData/Build/Products/Release-iphonesimulator/sentry_react_native.app | |||||||||||||||||
retention-days: 60 | |||||||||||||||||
|
|||||||||||||||||
- name: Upload logs | |||||||||||||||||
if: ${{ always() }} | |||||||||||||||||
uses: actions/upload-artifact@v4 | |||||||||||||||||
with: | |||||||||||||||||
name: build-ios-logs | |||||||||||||||||
path: ios/xcodebuild.log | |||||||||||||||||
|
|||||||||||||||||
run-ui-test-android: | |||||||||||||||||
name: UI Test Android | |||||||||||||||||
test: | |||||||||||||||||
Comment on lines
+20
to
+24
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Copilot AutofixAI about 2 months ago To fix the problem, add a What to change:
Suggested changeset
1
.github/workflows/build.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
|||||||||||||||||
name: 'Run UI Tests' | |||||||||||||||||
needs: build-android | |||||||||||||||||
runs-on: ubuntu-latest | |||||||||||||||||
steps: | |||||||||||||||||
- uses: actions/checkout@v4 | |||||||||||||||||
|
|||||||||||||||||
- name: Setup KVM | |||||||||||||||||
shell: bash | |||||||||||||||||
run: | | |||||||||||||||||
# check if virtualization is supported... | |||||||||||||||||
sudo apt install -y --no-install-recommends cpu-checker coreutils && echo "CPUs=$(nproc --all)" && kvm-ok | |||||||||||||||||
# allow access to KVM to run the emulator | |||||||||||||||||
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' \ | |||||||||||||||||
| sudo tee /etc/udev/rules.d/99-kvm4all.rules | |||||||||||||||||
sudo udevadm control --reload-rules | |||||||||||||||||
sudo udevadm trigger --name-match=kvm | |||||||||||||||||
- name: Download APK artifact | |||||||||||||||||
uses: actions/download-artifact@v4 | |||||||||||||||||
with: | |||||||||||||||||
name: empower-plant-react-native-android | |||||||||||||||||
|
|||||||||||||||||
- name: Install Maestro | |||||||||||||||||
uses: dniHze/maestro-test-action@bda8a93211c86d0a05b7a4597c5ad134566fbde4 # [email protected] | |||||||||||||||||
with: | |||||||||||||||||
maestro-version: ${{env.MAESTRO_VERSION}} | |||||||||||||||||
|
|||||||||||||||||
- name: Run tests | |||||||||||||||||
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # [email protected] | |||||||||||||||||
with: | |||||||||||||||||
api-level: 30 | |||||||||||||||||
force-avd-creation: false | |||||||||||||||||
disable-animations: true | |||||||||||||||||
disable-spellchecker: true | |||||||||||||||||
target: 'aosp_atd' | |||||||||||||||||
channel: canary # Necessary for ATDs | |||||||||||||||||
emulator-options: > | |||||||||||||||||
-no-window | |||||||||||||||||
-no-snapshot-save | |||||||||||||||||
-gpu swiftshader_indirect | |||||||||||||||||
-noaudio | |||||||||||||||||
-no-boot-anim | |||||||||||||||||
-camera-back none | |||||||||||||||||
-camera-front none | |||||||||||||||||
-timezone US/Pacific | |||||||||||||||||
script: | | |||||||||||||||||
adb install -r -d app-release.apk | |||||||||||||||||
maestro test maestro --debug-output maestro-logs --env=APP_ID=com.sentry_react_native | |||||||||||||||||
uses: ./.github/workflows/test.yml | |||||||||||||||||
Comment on lines
+25
to
+27
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Copilot AutofixAI about 2 months ago To fix the problem, you should add a
Suggested changeset
1
.github/workflows/build.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,105 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
name: Release | ||||||||||||||||||||||||||||||||||||||||||||||||||
on: | ||||||||||||||||||||||||||||||||||||||||||||||||||
workflow_dispatch: | ||||||||||||||||||||||||||||||||||||||||||||||||||
inputs: | ||||||||||||||||||||||||||||||||||||||||||||||||||
version: | ||||||||||||||||||||||||||||||||||||||||||||||||||
description: 'The version name to release. E.g. 4.0.2' | ||||||||||||||||||||||||||||||||||||||||||||||||||
required: true | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
env: | ||||||||||||||||||||||||||||||||||||||||||||||||||
APK_PATH: app-release.apk | ||||||||||||||||||||||||||||||||||||||||||||||||||
APP_ARCHIVE_PATH: sentry_react_native.app.zip | ||||||||||||||||||||||||||||||||||||||||||||||||||
GH_TOKEN: ${{ github.token }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
jobs: | ||||||||||||||||||||||||||||||||||||||||||||||||||
bump-version: | ||||||||||||||||||||||||||||||||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||||||||||
name: 'Prepare Release' | ||||||||||||||||||||||||||||||||||||||||||||||||||
steps: | ||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Set environment variables | ||||||||||||||||||||||||||||||||||||||||||||||||||
run: | | ||||||||||||||||||||||||||||||||||||||||||||||||||
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV | ||||||||||||||||||||||||||||||||||||||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
- uses: actions/setup-node@v4 | ||||||||||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||||||||||
node-version: 18 | ||||||||||||||||||||||||||||||||||||||||||||||||||
cache: 'npm' | ||||||||||||||||||||||||||||||||||||||||||||||||||
cache-dependency-path: package-lock.json | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Install dependencies | ||||||||||||||||||||||||||||||||||||||||||||||||||
run: npm ci | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Bump Version | ||||||||||||||||||||||||||||||||||||||||||||||||||
run: | | ||||||||||||||||||||||||||||||||||||||||||||||||||
git config user.name getsentry-bot | ||||||||||||||||||||||||||||||||||||||||||||||||||
git config user.email [email protected] | ||||||||||||||||||||||||||||||||||||||||||||||||||
git checkout -b release/${{ env.VERSION }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
npm version ${{ env.VERSION }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
git tag --force ${{ env.VERSION }} -m ${{ env.VERSION }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
git push origin ${{ env.VERSION }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
git push origin release/${{ env.VERSION }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
build-android: | ||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+16
to
+45
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Copilot AutofixAI about 2 months ago To fix the problem, add a The best way to fix this is to add a Change to make:
Suggested changeset
1
.github/workflows/release.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
||||||||||||||||||||||||||||||||||||||||||||||||||
name: 'Build Android' | ||||||||||||||||||||||||||||||||||||||||||||||||||
needs: [bump-version] | ||||||||||||||||||||||||||||||||||||||||||||||||||
uses: ./.github/workflows/build-android.yml | ||||||||||||||||||||||||||||||||||||||||||||||||||
secrets: inherit | ||||||||||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||||||||||
ref: release/${{ inputs.version }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
build-ios: | ||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+46
to
+53
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Copilot AutofixAI about 2 months ago To fix the problem, you should add a
Suggested changeset
1
.github/workflows/release.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
||||||||||||||||||||||||||||||||||||||||||||||||||
name: 'Build iOS' | ||||||||||||||||||||||||||||||||||||||||||||||||||
needs: [bump-version] | ||||||||||||||||||||||||||||||||||||||||||||||||||
uses: ./.github/workflows/build-ios.yml | ||||||||||||||||||||||||||||||||||||||||||||||||||
secrets: inherit | ||||||||||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||||||||||
ref: release/${{ inputs.version }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
publish-release: | ||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+54
to
+61
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Copilot AutofixAI about 2 months ago To fix the problem, you should add an explicit
A good minimal starting point is: permissions:
contents: write If you know that only releases and pushes are needed, you can further restrict, but Add the following block after the
Suggested changeset
1
.github/workflows/release.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
||||||||||||||||||||||||||||||||||||||||||||||||||
name: 'Publish Release' | ||||||||||||||||||||||||||||||||||||||||||||||||||
needs: [bump-version, build-android, build-ios] | ||||||||||||||||||||||||||||||||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||||||||||||||||||||||||||||||||
env: | ||||||||||||||||||||||||||||||||||||||||||||||||||
MERGE_TARGET: master | ||||||||||||||||||||||||||||||||||||||||||||||||||
steps: | ||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Set environment variables | ||||||||||||||||||||||||||||||||||||||||||||||||||
run: | | ||||||||||||||||||||||||||||||||||||||||||||||||||
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV | ||||||||||||||||||||||||||||||||||||||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||||||||||
fetch-depth: 0 # fetch all history all branches and tags | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Download iOS App | ||||||||||||||||||||||||||||||||||||||||||||||||||
uses: actions/download-artifact@v4 | ||||||||||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||||||||||
name: empower-plant-react-native-ios | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Download Android APK | ||||||||||||||||||||||||||||||||||||||||||||||||||
uses: actions/download-artifact@v4 | ||||||||||||||||||||||||||||||||||||||||||||||||||
with: | ||||||||||||||||||||||||||||||||||||||||||||||||||
name: empower-plant-react-native-android | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Set GitHub user | ||||||||||||||||||||||||||||||||||||||||||||||||||
run: | | ||||||||||||||||||||||||||||||||||||||||||||||||||
git config user.name getsentry-bot | ||||||||||||||||||||||||||||||||||||||||||||||||||
git config user.email [email protected] | ||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Create Release | ||||||||||||||||||||||||||||||||||||||||||||||||||
run: | | ||||||||||||||||||||||||||||||||||||||||||||||||||
gh release create \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
${{ env.VERSION }} \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
${{ env.APK_PATH }} \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
${{ env.APP_ARCHIVE_PATH }} \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
--title ${{ env.VERSION }} \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
--notes "Release ${{ env.VERSION }}" \ | ||||||||||||||||||||||||||||||||||||||||||||||||||
|| error_exit "Failed to create GitHub release." | ||||||||||||||||||||||||||||||||||||||||||||||||||
- name: Clean up Release Branch | ||||||||||||||||||||||||||||||||||||||||||||||||||
run: | | ||||||||||||||||||||||||||||||||||||||||||||||||||
git reset --hard | ||||||||||||||||||||||||||||||||||||||||||||||||||
git checkout ${{ env.MERGE_TARGET }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
git push origin --delete release/${{ env.VERSION }} | ||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+62
to
+105
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Copilot AutofixAI about 2 months ago To fix the problem, you should add a You should edit
Suggested changeset
1
.github/workflows/release.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
Uh oh!
There was an error while loading. Please reload this page.