Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: auto schedule youtube stream #851

Conversation

sudoshreyansh
Copy link

Description

  • Added auto schedule of live streams on community call creation
  • Requires initial setup with the relevant secrets

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@sudoshreyansh sudoshreyansh changed the title Auto schedule youtube stream feat: auto schedule youtube stream Aug 22, 2023
Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sudoshreyansh thanks a 💯

left 2 comments

I will need your guidance on how to create a proper tokens in google cloud + what needs to be added to secrets

.github/workflows/create-event-workflow-reusable.yml Outdated Show resolved Hide resolved
.github/workflows/create-event-helpers/package.json Outdated Show resolved Hide resolved
@derberg
Copy link
Member

derberg commented Sep 22, 2023

@sudoshreyansh hey, you need help?

@sudoshreyansh
Copy link
Author

@derberg 👋, made the changes. Please re-review.

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added few comments

also, please share tips on how to properly create token and secret in google, to make sure it works :D

@@ -70,6 +70,10 @@ on:
required: true
TWITTER_ACCESS_TOKEN_SECRET:
required: true
GOOGLE_OAUTH_TOKEN:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you will need to update all the workflows that start with create-event, like https://github.com/asyncapi/community/blob/master/.github/workflows/create-event-lets-talk-about.yml

you need to pass these 2 additional google secrets

/**
* Schedules a live stream with the parameters provided.
*
* @param {String} title Title
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update jsdoc please

with:
script: |
const { scheduleLivestream } = require('./.github/workflows/create-event-helpers/youtube/index.js');
scheduleLivestream('${{ inputs.date }}T${{ inputs.time }}:00Z', 'PLbi1gRlP7pijUwZJErzyYf_Rc-PWu4lXS');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

playlist id cannot be hardcoded here as there are different playlists per meeting

we need to be able to use it this way that for example in https://github.com/asyncapi/community/blob/master/.github/workflows/create-event-lets-talk-about.yml

I can do:

with:
    yt_playlist: PLbi1gRlP7pigPBrBMaNQhUeniR1pdDMiY

so here you need

Suggested change
scheduleLivestream('${{ inputs.date }}T${{ inputs.time }}:00Z', 'PLbi1gRlP7pijUwZJErzyYf_Rc-PWu4lXS');
scheduleLivestream('${{ inputs.date }}T${{ inputs.time }}:00Z', '${{ inputs.yt_playlist }}');

@derberg
Copy link
Member

derberg commented Oct 31, 2023

@sudoshreyansh ping pong 🙏🏼

@sudoshreyansh
Copy link
Author

@derberg made the changes. Could you give them a look again?
I have also added the playlist ids in the respective workflows.

@derberg
Copy link
Member

derberg commented Dec 19, 2023

yo @sudoshreyansh so sorry mate for super later followup but AsyncAPI v3 took over us last several weeks

I will need your guidance on how to create a proper tokens in google cloud + what needs to be added to secrets

Please 🙏🏼

Copy link

This pull request has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation.

There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions bot added the stale label Apr 18, 2024
@github-actions github-actions bot closed this Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants