diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml new file mode 100644 index 0000000..7b82cc5 --- /dev/null +++ b/.github/workflows/periodic.yml @@ -0,0 +1,17 @@ +name: Periodic Trigger +on: + schedule: + - cron: '0 0 * * 0' # Every Sunday + +jobs: + main: + runs-on: ubuntu-latest + steps: + - name: Trigger the main workflow + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + EVENT: periodic + ORG: ForNeVeR + REPO: msdn-delocalizer + run: | + curl -d "{\"event_type\": \"${EVENT}\"}" -H "Content-Type: application/json" -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.everest-preview+json" "https://api.github.com/repos/${ORG}/${REPO}/dispatches" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ecbe1d3..76343aa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,25 +2,29 @@ name: Build and Test on: push: branches: - - master + - main pull_request: branches: - - master + - main + repository_dispatch: + types: [ periodic ] jobs: build: strategy: matrix: - image: [macos-12, ubuntu-22.04, windows-2022] + image: [ macos-12, ubuntu-22.04, windows-2022 ] + fail-fast: false runs-on: ${{ matrix.image }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - id: yarn-cache name: Determine Yarn cache directory + shell: bash run: | - echo "::set-output name=path::$(yarn cache dir)" + echo "path=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Yarn cache - uses: actions/cache@v1.1.0 + uses: actions/cache@v4 with: path: ${{ steps.yarn-cache.outputs.path }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} @@ -34,8 +38,8 @@ jobs: run: | yarn test - name: Upload the distribution - if: matrix.image == 'ubuntu-18.04' - uses: actions/upload-artifact@v1.0.0 + if: matrix.image == 'ubuntu-22.04' + uses: actions/upload-artifact@v4 with: name: msdn-delocalizer path: build/dest diff --git a/.idea/dictionaries/fried.xml b/.idea/dictionaries/fried.xml new file mode 100644 index 0000000..2ae48ac --- /dev/null +++ b/.idea/dictionaries/fried.xml @@ -0,0 +1,7 @@ + + + + delocalizer + + + \ No newline at end of file