-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1823 from salesforcecli/ew/gha-updates
Remove deprecated inputs
- Loading branch information
Showing
12 changed files
with
113 additions
and
71 deletions.
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
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.