Skip to content

Commit

Permalink
chore(github_actions): using now classic secret of OCM_CI_ROBOT
Browse files Browse the repository at this point in the history
  • Loading branch information
hilmarf committed Nov 25, 2024
1 parent 3133edf commit 1853768
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/publish-to-other-than-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,24 +130,11 @@ jobs:
run: |
$version = "${{ github.event.client_payload.version }}" -replace 'v'
echo "RELEASE_VERSION=$version" | Out-File $env:GITHUB_ENV
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.OCMBOT_APP_ID }}
private_key: ${{ secrets.OCMBOT_PRIV_KEY }}
permissions: |
{"contents":"write","pull_requests":"write"}
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ steps.generate_token.outputs.token }}
- name: Install wingetcreate
run: choco install wingetcreate
run: iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
- name: Update Winget package
run: |
cd hack\winget
wingetcreate update --submit --token ${{ steps.generate_token.outputs.token }} --urls `
.\wingetcreate.exe update --submit --token ${{ secrets.OCM_CI_ROBOT_0_REPO }} --urls `
https://github.com/open-component-model/ocm/releases/download/v${{ env.RELEASE_VERSION }}/ocm-${{ env.RELEASE_VERSION }}-windows-amd64.zip `
https://github.com/open-component-model/ocm/releases/download/v${{ env.RELEASE_VERSION }}/ocm-${{ env.RELEASE_VERSION }}-windows-arm64.zip `
--version ${{ env.RELEASE_VERSION }} `
Expand Down

0 comments on commit 1853768

Please sign in to comment.