Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade: Bump the actions group with 5 updates #45

Merged
merged 1 commit into from
Jan 27, 2024
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
9 changes: 5 additions & 4 deletions .github/workflows/new-openttd-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ jobs:

- name: Generate access token
id: generate_token
uses: tibdex/github-app-token@v1
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.DEPLOYMENT_APP_ID }}
private_key: ${{ secrets.DEPLOYMENT_APP_PRIVATE_KEY }}
repository: OpenTTD/workflows
installation_retrieval_mode: "repository"
installation_retrieval_payload: "OpenTTD/workflows"

- name: Trigger 'update CDN'
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.generate_token.outputs.token }}
repository: OpenTTD/workflows
Expand All @@ -49,7 +50,7 @@ jobs:
# Docs we publish are always based on the master.
- if: github.event.action == 'new-master'
name: Trigger 'publish docs'
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.generate_token.outputs.token }}
repository: OpenTTD/workflows
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/openttd-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ jobs:
- name: Generate access token
if: steps.new_commit.outputs.build_nightly != '0'
id: generate_token
uses: tibdex/github-app-token@v1
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.DEPLOYMENT_APP_ID }}
private_key: ${{ secrets.DEPLOYMENT_APP_PRIVATE_KEY }}
repository: OpenTTD/OpenTTD
installation_retrieval_mode: "repository"
installation_retrieval_payload: "OpenTTD/OpenTTD"

- name: Trigger 'Build nightly'
if: steps.new_commit.outputs.build_nightly != '0'
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.generate_token.outputs.token }}
repository: OpenTTD/OpenTTD
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
fi

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

- name: Prepare docs
shell: bash
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/rw-eints-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout eints
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: OpenTTD/eints

- name: Generate access token
id: generate_token
uses: tibdex/github-app-token@v1
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.EINTS_APP_ID }}
private_key: ${{ secrets.EINTS_APP_PRIVATE_KEY }}
repository: ${{ inputs.repository }}
installation_retrieval_mode: "repository"
installation_retrieval_payload ${{ inputs.repository }}

- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
path: scripts/${{ inputs.project }}
token: ${{ steps.generate_token.outputs.token }}

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ concurrency:
jobs:
flake8:
name: Flake8
uses: OpenTTD/actions/.github/workflows/rw-py-flake8.yml@v4
uses: OpenTTD/actions/.github/workflows/rw-py-flake8.yml@v5
with:
python-path: cdn/cdn_generator

black:
name: Black
uses: OpenTTD/actions/.github/workflows/rw-py-black.yml@v4
uses: OpenTTD/actions/.github/workflows/rw-py-black.yml@v5
with:
python-path: cdn/cdn_generator
python-version: 3.8
Expand All @@ -33,10 +33,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand All @@ -50,4 +50,4 @@ jobs:
- flake8
- black

uses: OpenTTD/actions/.github/workflows/rw-annotation-check.yml@v4
uses: OpenTTD/actions/.github/workflows/rw-annotation-check.yml@v5
11 changes: 6 additions & 5 deletions .github/workflows/update-cdn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
fi

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

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down Expand Up @@ -79,14 +79,15 @@ jobs:

- name: Generate access token
id: generate_token
uses: tibdex/github-app-token@v1
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.DEPLOYMENT_APP_ID }}
private_key: ${{ secrets.DEPLOYMENT_APP_PRIVATE_KEY }}
repository: OpenTTD/website
installation_retrieval_mode: "repository"
installation_retrieval_payload: "OpenTTD/website"

- name: Trigger 'publish website'
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.generate_token.outputs.token }}
repository: OpenTTD/website
Expand Down