Skip to content

Malnati is running out GitHub Actions for translating 🚀 #9

Malnati is running out GitHub Actions for translating 🚀

Malnati is running out GitHub Actions for translating 🚀 #9

Workflow file for this run

name: OpenAI Translate
run-name: ${{ github.actor }} is running out GitHub Actions for translating 🚀
# Controls when the workflow will run
on:
push:
paths:
- '**.md'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "translate"
translate:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: Set Git Config
run: |
git config user.email "${{ github.actor }}@users.noreply.github.com"
git config user.name "${{ github.actor }}"
- name: List and process changed markdown files
run: |
for file in $(git diff --name-only HEAD~1 HEAD | grep '\.md$'); do
.github/workflows/translate.bash ${{ secrets.TRANSLATION }} $file
done