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

Everyone is Invited to Help me in Designing Github WorkFlow for this #360

Open
Manishmg3994 opened this issue Apr 7, 2023 · 1 comment

Comments

@Manishmg3994
Copy link

i was designing a workflow file for this and you can put your code below because i was facing some issues

on:
  pull_request:
    branches:
    # you can add more branches 
      - main
      - master
      - base
      - advanced
      - nobug
      - auth
  push:
    branches:
    # you can add more branches 
      - main
      - master
      - develop
      - base 
      - advanced
      - nobug
      - auth
  workflow_dispatch: # run Workflow Job manually from action tab
name: "Upload Video To Youtube And Create Post in Facebook Page and Create ReadMe.md in Github"
jobs:
  build:
    name: Upload Video To Youtube And Create Post in Facebook Page and Create ReadMe.md in Github
    runs-on: ubuntu-latest
    # runs-on: macos-latest #todo change
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-python@v4
        with:
          python-version: '3.10'
          # cache: 'pip' # caching pip dependencies
      - run: sudo python setup.py install
      # - run: pip install -r requirements.txt
      # - run: python my_script.py
      - run: |
          pwd
           youtube-upload \
            --title="${{ github.event.repository.name }}" \
            # --title="A.S. Mutter" \
            --description="${{ github.event.payload.description }}" \
            # --description="A.S. Mutter plays Beethoven" \ 
            --category="Comedy" \
            --tags="Funny, Comedy , Teen Chapri, 3 Chapri " \ 
            --recording-date="${{ github.event.created_at }}" \ 
            # --recording-date="2011-03-10T15:32:17.0Z" \ 
            --default-language="hi" \
            --default-audio-language="hi" \
            --client-secrets="${{ secrets.GCP }}" \
            --credentials-file="${{ secrets.GCP }}" \
            # --credentials-file="my_credentials.json" \
            # --playlist="My favorite music" \
            # --embeddable=True|False \
            --embeddable=True \
            # --privacy (public | unlisted | private)  
            --privacy= public \
            # --publish-at (YYYY-MM-DDThh:mm:ss.sZ)  
            # --location (latitude=VAL,longitude=VAL[,altitude=VAL])  
            # --thumbnail (string)  
              anne_sophie_mutter.flv
              tx2Zb-145Yz

@Manishmg3994
Copy link
Author

use

${{ github.event.repository.description }}

and

${{ github.event.repository.created_at }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant