mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
simplify staging deploy workflow, upgrade github action versions
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -21,9 +21,9 @@ jobs:
|
||||
node-version: ['18', '20']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm clean-install
|
||||
|
||||
4
.github/workflows/codespell.yml
vendored
4
.github/workflows/codespell.yml
vendored
@@ -11,8 +11,8 @@ jobs:
|
||||
name: Check for spelling errors
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: codespell-project/actions-codespell@master
|
||||
- uses: actions/checkout@v4
|
||||
- uses: codespell-project/actions-codespell@v2
|
||||
with:
|
||||
check_filenames: true
|
||||
skip: ./.git,./data/territory_languages.json,./data/imagery.json,./data/languages.json,./data/address_formats.json,./dist/locales,./docs/img,./dist/img,./css,package.json,package-lock.json,scripts,docs
|
||||
|
||||
17
.github/workflows/staging.yml
vendored
17
.github/workflows/staging.yml
vendored
@@ -8,23 +8,8 @@ permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
checksecret:
|
||||
name: check if deploy secret is present
|
||||
environment: workflows
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
deploy_secret_present: ${{ steps.checksecret_job.outputs.deploy_secret_present }}
|
||||
steps:
|
||||
- name: Check whether required secret is available
|
||||
id: checksecret_job
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{secrets.NETLIFY_AUTH_TOKEN}}
|
||||
run: |
|
||||
echo "::set-output name=deploy_secret_present::${{ env.NETLIFY_AUTH_TOKEN != '' }}"
|
||||
|
||||
build-deploy:
|
||||
needs: [checksecret]
|
||||
if: needs.checksecret.outputs.deploy_secret_present == 'true'
|
||||
if: github.repository == 'openstreetmap/id'
|
||||
runs-on: ubuntu-latest
|
||||
environment: workflows
|
||||
steps:
|
||||
|
||||
2
.github/workflows/transifex.yml
vendored
2
.github/workflows/transifex.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
environment: workflows
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install Transifex client
|
||||
run: |
|
||||
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
|
||||
|
||||
Reference in New Issue
Block a user