Skip to content

Update import-translations-github.sh #143

Update import-translations-github.sh

Update import-translations-github.sh #143

Workflow file for this run

# Copyright (c) 2021 Armel Soro
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
name: Website
on:
push:
branches:
- master
tags:
- '*'
jobs:
update_gh_pages_branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare scripts
run: chmod +x tools/update-github-pages.sh
- name: "Set environmental variables"
run: |
echo "CIRCLE_BUILD_NUM=$GITHUB_RUN_ID/$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
echo "CIRCLE_SHA1=$GITHUB_SHA" >> $GITHUB_ENV
- name: Update Github Pages branch
run: ./tools/update-github-pages.sh
env:
# import-translations-github.sh script is currently tied to Travis CI
CIRCLE_PULL_REQUEST: ''
GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
GIT_COMMIT_USER_EMAIL: 'maoni+github_actions@rm3l.org'
GIT_COMMIT_USER_NAME: 'Maoni Github Actions'