Skip to content

Commit

Permalink
keep old uploads
Browse files Browse the repository at this point in the history
Signed-off-by: sk593 <[email protected]>
  • Loading branch information
sk593 committed Jul 1, 2024
1 parent cf8553e commit 64c0c97
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion .github/workflows/publish-bicep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,55 @@ jobs:
- name: Publish bicep types
if: github.repository == 'radius-project/bicep-types-aws' && ((startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main'))
run: |
bicep publish-provider ./artifacts/bicep/index.json --target br:${{ env.BICEP_TYPES_REGISTRY }}/aws:${{ env.REL_VERSION == 'edge' && 'latest' || env.REL_VERSION }} --force
bicep publish-provider ./artifacts/bicep/index.json --target br:${{ env.BICEP_TYPES_REGISTRY }}/aws:${{ env.REL_VERSION == 'edge' && 'latest' || env.REL_VERSION }} --force
update-types:
name: Update Bicep extensibility provider types
runs-on: ubuntu-latest
timeout-minutes: 10
env:
GOVER: '^1.18'
GOPROXY: https://proxy.golang.org
steps:
- uses: actions/checkout@v3

- id: get_commit_hash
name: Get commit hash (radius-project/bicep-types-aws)
run: |
echo "::set-output name=commit_hash_short::$(git rev-parse HEAD --short)"
echo "::set-output name=gh_uri::https://github.com/radius-project/bicep-types-aws/tree/$(git rev-parse HEAD)/artifacts/bicep"
- name: Clone https://github.com/radius-project/bicep
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_RAD_CI_BOT_PAT }}
repository: radius-project/bicep
path: workflow-temp/bicep
ref: bicep-extensibility

- name: Copy generated files to radius-project/bicep repo
run: |
mkdir -p workflow-temp/bicep/src/Bicep.Types.Aws/generated
cp -R artifacts/bicep/* workflow-temp/bicep/src/Bicep.Types.Aws/generated
- name: Create Pull Request in radius-project/bicep repo
uses: peter-evans/create-pull-request@v4
with:
path: workflow-temp/bicep
token: ${{ secrets.GH_RAD_CI_BOT_PAT }}
committer: rad-ci-bot <[email protected]>
author: rad-ci-bot <[email protected]>
signoff: true
branch: aws-types/patch-${{ github.event.pull_request.number }}
delete-branch: true
title: |
Update AWS extensibility provider for Bicep
body: |
## Autogenerated Report
- Updates Bicep extensibility type definitions generated from [radius-project/bicep-types-aws](${{ steps.get_commit_hash.outputs.gh_uri }})
commit-message: |
update generated types from ${{ steps.get_commit_hash.outputs.gh_uri }}
labels: |
autogenerated
github_actions
aws-types
draft: false

0 comments on commit 64c0c97

Please sign in to comment.