-
Notifications
You must be signed in to change notification settings - Fork 25
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
Remove deprecated inputs #1823
Merged
Merged
Remove deprecated inputs #1823
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0266997
chore: remove deprecated inputs
iowillhoit e5ef453
chore: moving inputs
iowillhoit 0682b14
chore: promote refactor
iowillhoit 19c4c86
chore: more cleanup
iowillhoit d0d0d6f
Merge branch 'main' into ew/gha-updates
iowillhoit 3768b74
chore: revert
iowillhoit fe39806
Merge branch 'ew/gha-updates' of github.com:salesforcecli/cli into ew…
iowillhoit b89e7ab
Merge branch 'main' into ew/gha-updates
iowillhoit 8502dbc
test: empty commit
iowillhoit 7dee702
test: empty commit
iowillhoit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,14 +36,19 @@ jobs: | |
- name: Get release channel for s3 | ||
id: s3-release-channel | ||
run: | | ||
CHANNEL=${{ steps.release-channel.outputs.group1 }} | ||
CHANNEL="$STEPS_RELEASE_CHANNEL_GROUP1" | ||
S3_CHANNEL=${CHANNEL/latest/stable} | ||
echo "s3-channel=$S3_CHANNEL" >> "$GITHUB_OUTPUT" | ||
env: | ||
STEPS_RELEASE_CHANNEL_GROUP1: ${{ steps.release-channel.outputs.group1 }} | ||
|
||
- name: Channel Notice | ||
run: | | ||
echo "::notice title=Channel::Channel found in Github Release: ${{ steps.release-channel.outputs.group1 }}" | ||
echo "::notice title=S3 Channel::Channel that will be used in S3: ${{ steps.s3-release-channel.outputs.s3-channel }}" | ||
echo "::notice title=Channel::Channel found in Github Release: $STEPS_RELEASE_CHANNEL_GROUP1" | ||
echo "::notice title=S3 Channel::Channel that will be used in S3: $STEPS_S3_RELEASE_CHANNEL_S3_CHANNEL" | ||
env: | ||
STEPS_RELEASE_CHANNEL_GROUP1: ${{ steps.release-channel.outputs.group1 }} | ||
STEPS_S3_RELEASE_CHANNEL_S3_CHANNEL: ${{ steps.s3-release-channel.outputs.s3-channel }} | ||
|
||
npm-release: | ||
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main | ||
|
@@ -59,7 +64,6 @@ jobs: | |
uses: salesforcecli/github-workflows/.github/workflows/tarballs.yml@main | ||
with: | ||
upload: true | ||
cli: sf | ||
version: ${{ github.event.release.tag_name }} | ||
channel: ${{ needs.get-channel.outputs.s3-channel }} | ||
nodeVersion: ${{ vars.NODE_VERSION_OVERRIDE || 'lts/*' }} | ||
|
@@ -94,7 +98,6 @@ jobs: | |
needs: [get-channel, pack-verify-upload-tarballs] | ||
uses: salesforcecli/github-workflows/.github/workflows/packUploadMac.yml@main | ||
with: | ||
cli: sf | ||
version: ${{ github.event.release.tag_name }} | ||
channel: ${{ needs.get-channel.outputs.s3-channel }} | ||
nodeVersion: ${{ vars.NODE_VERSION_OVERRIDE || 'lts/*' }} | ||
|
@@ -104,7 +107,6 @@ jobs: | |
needs: [get-channel, pack-verify-upload-tarballs] | ||
uses: salesforcecli/github-workflows/.github/workflows/packUploadWindows.yml@main | ||
with: | ||
cli: sf | ||
version: ${{ github.event.release.tag_name }} | ||
channel: ${{ needs.get-channel.outputs.s3-channel }} | ||
nodeVersion: ${{ vars.NODE_VERSION_OVERRIDE || 'lts/*' }} | ||
|
@@ -116,8 +118,6 @@ jobs: | |
secrets: inherit | ||
with: | ||
version: ${{ github.event.release.tag_name }} | ||
cli: sf | ||
clipkg: '@salesforce/cli' | ||
|
||
build-docker-slim: | ||
needs: [get-channel, pack-verify-upload-tarballs] | ||
|
@@ -151,9 +151,6 @@ jobs: | |
steps: | ||
- name: Announce patch in Slack | ||
uses: slackapi/[email protected] | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.PLATFORM_CLI_CHANNEL_SLACK_INCOMING_WEBHOOK }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
with: | ||
payload: | | ||
{ | ||
|
@@ -165,6 +162,9 @@ jobs: | |
} | ||
}] | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.PLATFORM_CLI_CHANNEL_SLACK_INCOMING_WEBHOOK }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
|
||
run-just-nuts: | ||
needs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,6 @@ jobs: | |
uses: actions/checkout@v4 | ||
|
||
- name: download | ||
env: | ||
STAMPY_ARN: ${{ secrets.STAMPY_ARN }} | ||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | ||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | ||
AWS_EC2_METADATA_DISABLED: true | ||
# switch AWS identity to the one that can access stampy | ||
run: | | ||
ACCOUNT_ID=$(aws sts get-caller-identity | jq -r '.Account') | ||
|
@@ -26,13 +21,14 @@ jobs: | |
export AWS_SECRET_ACCESS_KEY=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.SecretAccessKey') | ||
export AWS_SESSION_TOKEN=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.SessionToken') | ||
aws s3 cp --recursive ${{ secrets.STAMPY_SIGNED_BUCKET }}/ . | ||
|
||
- name: upload to CLI s3 | ||
id: upload | ||
env: | ||
STAMPY_ARN: ${{ secrets.STAMPY_ARN }} | ||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | ||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | ||
AWS_EC2_METADATA_DISABLED: true | ||
|
||
- name: upload to CLI s3 | ||
id: upload | ||
run: | | ||
# Run script and redirect stderr to stdout | ||
OUTPUT=$(node scripts/stampy-signed-upload.js 2>&1) | ||
|
@@ -47,22 +43,26 @@ jobs: | |
# Set multiline string output | ||
# https://stackoverflow.com/questions/74137120/how-to-fix-or-avoid-error-unable-to-process-file-command-output-successfully#comment131739699_74232400 | ||
echo -e "output<<EOF\n$OUTPUT\nEOF" >> "$GITHUB_OUTPUT" | ||
|
||
- name: clean up stampy in/out buckets | ||
env: | ||
STAMPY_ARN: ${{ secrets.STAMPY_ARN }} | ||
STAMPY_UNSIGNED_BUCKET: ${{ secrets.STAMPY_UNSIGNED_BUCKET }} | ||
STAMPY_SIGNED_BUCKET: ${{ secrets.STAMPY_SIGNED_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | ||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | ||
AWS_EC2_METADATA_DISABLED: true | ||
|
||
- name: clean up stampy in/out buckets | ||
run: | | ||
ACCOUNT_ID=$(aws sts get-caller-identity | jq -r '.Account') | ||
TEMP_ROLE=$(aws sts assume-role --role-arn $STAMPY_ARN --role-session-name artifact-signing) | ||
export AWS_ACCESS_KEY_ID=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.AccessKeyId') | ||
export AWS_SECRET_ACCESS_KEY=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.SecretAccessKey') | ||
export AWS_SESSION_TOKEN=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.SessionToken') | ||
node scripts/stampy-signed-delete.js | ||
env: | ||
STAMPY_ARN: ${{ secrets.STAMPY_ARN }} | ||
STAMPY_UNSIGNED_BUCKET: ${{ secrets.STAMPY_UNSIGNED_BUCKET }} | ||
STAMPY_SIGNED_BUCKET: ${{ secrets.STAMPY_SIGNED_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | ||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | ||
AWS_EC2_METADATA_DISABLED: true | ||
|
||
- name: notify | ||
uses: slackapi/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ jobs: | |
make-pr-for-nightly: | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} | ||
SF_HIDE_RELEASE_NOTES: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a global org env now |
||
runs-on: 'ubuntu-latest' | ||
steps: | ||
- name: Check out repository as our bot user | ||
|
@@ -60,12 +59,17 @@ jobs: | |
input_string: ${{ steps.package-json-version.outputs.prop }} | ||
|
||
- name: Log version info | ||
run: | | ||
echo "INFO | Semver version in 'latest-rc' is ${{ steps.latest-rc-version.outputs.version }}" | ||
echo "INFO | Semver minor in 'latest-rc' is ${{ steps.latest-rc-semver-info.outputs.minor }}" | ||
echo "INFO | Semver version in 'main' is ${{ steps.package-json-version.outputs.prop }}" | ||
echo "INFO | Semver minor in 'main' is ${{ steps.package-json-semver-info.outputs.minor }}" | ||
shell: bash | ||
run: | | ||
echo "[INFO] Semver version in 'latest-rc' is: $STEPS_LATEST_RC_VERSION_VERSION" | ||
echo "[INFO] Semver minor in 'latest-rc' is: $STEPS_LATEST_RC_SEMVER_INFO_MINOR" | ||
echo "[INFO] Semver version in 'main' is: $STEPS_PACKAGE_JSON_VERSION_PROP" | ||
echo "[INFO] Semver minor in 'main' is: $STEPS_PACKAGE_JSON_SEMVER_INFO_MINOR" | ||
env: | ||
STEPS_LATEST_RC_VERSION_VERSION: ${{ steps.latest-rc-version.outputs.version }} | ||
STEPS_LATEST_RC_SEMVER_INFO_MINOR: ${{ steps.latest-rc-semver-info.outputs.minor }} | ||
STEPS_PACKAGE_JSON_VERSION_PROP: ${{ steps.package-json-version.outputs.prop }} | ||
STEPS_PACKAGE_JSON_SEMVER_INFO_MINOR: ${{ steps.package-json-semver-info.outputs.minor }} | ||
|
||
- name: Install @salesforce/plugin-release-management | ||
run: npm install -g @salesforce/plugin-release-management --omit=dev | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this will default to
any
error. We had an example this morning where a NUT did not re-run because of a timeout https://github.com/salesforcecli/cli/actions/runs/10209026168/job/28246609426