mirror of https://github.com/databricks/cli.git
Fix workflow to publish latest release (#364)
## Changes Fix the publish workflow introduced in #363. ## Tests Manual triggers.
This commit is contained in:
parent
9e16140b6e
commit
e4b23dcd80
|
@ -7,7 +7,7 @@ on:
|
|||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
@ -20,15 +20,10 @@ jobs:
|
|||
sudo apt-get update
|
||||
sudo apt-get install s3cmd
|
||||
|
||||
- name: Merge release branch
|
||||
run: |
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git merge origin/release-s3
|
||||
|
||||
- name: Publish to S3
|
||||
working-directory: ./scripts
|
||||
run: ./publish_to_s3.sh
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
|
|
|
@ -46,3 +46,8 @@ jobs:
|
|||
args: release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
publish:
|
||||
uses: ./.github/workflows/publish-latest.yml
|
||||
needs: goreleaser
|
||||
secrets: inherit
|
||||
|
|
Loading…
Reference in New Issue