Skip to content

Commit

Permalink
feat: rename intel mac pkg (#10)
Browse files Browse the repository at this point in the history
* feat: rename intel mac pkg

* chore: add env var to avoid unnecessary aws API calls

more info here: aws/aws-cli#5262 (comment)

* fix: don't use docker since gha runners already have aws cli

* chore: change rename mac pkg job to a composite action

* chore: for testing

* fix: step ids

* Revert "chore: for testing"

This reverts commit cf409ca.

* fix: remove rename mac job from reusable workflow
  • Loading branch information
RodEsp authored Nov 9, 2022
1 parent be2451e commit 60225d3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/actions/renameMacPkg/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This action is only needed as long as the developer site and other docs are linking to the old sfdx.pkg file and the mac signing job is only signing the old file as well.
# It can be deleted once those are updated to use the new name, sfdx-x64.pkg.
name: rename-mac-pkg
description: renames the intel mac pkg file created by oclif v3 to match the name of the file created by oclif v2

inputs:
cli:
description: which CLI to rename the pkg file for (e.g. sfdx or sf)
required: true
channel:
description: cli channel to target (e.g. stable, stable-rc)
required: true

runs:
using: "composite"
steps:
- id: download-and-rename-x64-pkg
shell: bash
run: aws s3 cp s3://dfc-data-production/media/salesforce-cli/${{ inputs.cli }}/channels/${{ inputs.channel }}/sfdx-x64.pkg ./sfdx.pkg
- id: upload-renamed-pkg
shell: bash
run: aws s3 cp ./sfdx.pkg s3://dfc-data-production/media/salesforce-cli/${{ inputs.cli }}/channels/${{ inputs.channel }}/

0 comments on commit 60225d3

Please sign in to comment.