Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

workflow actions update #439

Merged
merged 6 commits into from
May 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2

updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: npm
directory: /
schedule:
interval: "daily"

interval: daily

- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: github-actions
directory: /
schedule:
interval: "daily"
interval: daily
38 changes: 19 additions & 19 deletions .github/workflows/Issue-text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ben-z/[email protected]
with:
message: "Hey, thank you for creating an issue. We will normally respond within 24 hours."
GITHUB_TOKEN: ${{ secrets.BOT }}

- uses: stefanbuck/github-issue-parser@v2
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/bug_report.yml

- run: echo '${{ steps.issue-parser.outputs.jsonString }}'

- run: echo ${{ steps.issue-parser.outputs.issueparser_what_browser_are_you_seeing_the_problem_on }}

- uses: actions-ecosystem/action-add-labels@v1
with:
labels: ${{ steps.issue-parser.outputs.issueparser_what_browser_are_you_seeing_the_problem_on }}
github_token: ${{ secrets.BOT }}

- uses: peter-evans/create-or-update-comment@v2
with:
body: Hey, thank you for creating an issue. We will normally respond within 24 hours.
issue-number: ${{ github.event.issue.number }}
token: ${{ secrets.BOT }}

- uses: stefanbuck/github-issue-parser@v2
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/bug_report.yml

- run: echo '${{ steps.issue-parser.outputs.jsonString }}'

- run: echo ${{ steps.issue-parser.outputs.issueparser_what_browser_are_you_seeing_the_problem_on }}

- uses: actions-ecosystem/action-add-labels@v1
with:
labels: ${{ steps.issue-parser.outputs.issueparser_what_browser_are_you_seeing_the_problem_on }}
github_token: ${{ secrets.BOT }}
2 changes: 1 addition & 1 deletion .github/workflows/PR-Closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: win11bot/preview

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: "CLA Assistant"
name: CLA Assistant
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]
types: [opened, closed, synchronize]

jobs:
CLAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
- name: CLA Assistant
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
# Beta Release
uses: cla-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.BOT }}
# the below token should have repo scope and must be manually added by you in the repository's secret
PERSONAL_ACCESS_TOKEN : ${{ secrets.BOT }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.BOT }}
with:
path-to-signatures: 'signatures/version1/cla.json'
path-to-document: 'https://win.asylum-os.com/cla/' # e.g. a CLA or a DCO document
path-to-signatures: "signatures/version1/cla.json"
path-to-document: "https://win.asylum-os.com/cla/" # e.g. a CLA or a DCO document
# branch should not be protected
branch: 'master'
branch: "master"
allowlist: win11bot,bot*

#below are the optional inputs - If the optional inputs are not given, then default values will be taken
#below are the optional inputs - If the optional inputs are not given, then default values will be taken
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
#remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
Expand Down
78 changes: 39 additions & 39 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: CodeQL

on:
push:
branches: [ master ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
schedule:
- cron: '31 7 * * 1'
- cron: "31 7 * * 1"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
env:
env:
CI: false
permissions:
actions: read
Expand All @@ -34,45 +34,45 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
language: ["javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '16.6.1'
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

- run: |
ci=false npm ci
ci=false npm run build
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

- run: |
ci=false npm ci
ci=false npm run build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
6 changes: 3 additions & 3 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: 'Dependency Review'
name: Dependency Review
on: [pull_request]

permissions:
Expand All @@ -14,7 +14,7 @@ jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
- name: Checkout Repository
uses: actions/checkout@v3
- name: 'Dependency Review'
- name: Dependency Review
uses: actions/dependency-review-action@v1
99 changes: 42 additions & 57 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,52 @@
name: Build JO Mama
name: Build & Deploy

on:
push:
branches:
- master
workflow_dispatch:
workflow_dispatch:

jobs:
build:
name: Build
Build-Deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Sentry CLI
uses: mathieu-bour/[email protected]
with:
version: latest # optional if 'latest'
token: ${{ secrets.SENTRY_AUTH_TOKEN }} # from GitHub secrets
organization: ${{ secrets.SENTRY_ORG }}
project: ${{ secrets.SENTRY_PROJECT }}

# - run: sentry-cli releases new -p ${{ secrets.SENTRY_PROJECT }} ${{ github.sha }}

# - run: sentry-cli releases set-commits --auto ${{ github.sha }}


- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '16.6.1'

- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-noder-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-

- name: Install dependencies
run: CI=false npm install

- name: Get translations
run: |
npm run crowdin upload
npm run crowdin download
env:
api_token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

- name: Build project
run: CI=false npm run build

- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.BOT }}
cname: win11.blueedge.me
publish_dir: ./build


- name: Checkout code
uses: actions/checkout@v3

- name: Setup Sentry CLI
uses: mathieu-bour/[email protected]
with:
version: latest # optional if latest
token: ${{ secrets.SENTRY_AUTH_TOKEN }} # from GitHub secrets
organization: ${{ secrets.SENTRY_ORG }}
project: ${{ secrets.SENTRY_PROJECT }}

# - run: sentry-cli releases new -p ${{ secrets.SENTRY_PROJECT }} ${{ github.sha }}
# - run: sentry-cli releases set-commits --auto ${{ github.sha }}

- name: Set up Node.js
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm

- name: Install dependencies
run: npm ci

- name: Get translations
run: |
npm run crowdin upload
npm run crowdin download
env:
api_token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

- name: Build project
run: CI=false npm run build

- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.BOT }}
cname: win11.blueedge.me
publish_dir: ./build
Loading