Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Nov 15, 2024
1 parent a4d5a1a commit 7001128
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .github/repos.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
"https://github.com/mosuem/my_app_old_web",
"https://github.com/mosuem/my_app_new_web"
]
3 changes: 0 additions & 3 deletions .github/repos.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:
pull_request:
workflow_dispatch:
inputs:
repos_file:
repos_json:
description: 'Path to the file containing the list of repository names'
required: true
default: '.github/repos.txt'
default: '.github/repos.json'
package_name:
description: 'Name of the package to update'
default: 'intl' ##DO-NOT-SUBMIT
Expand All @@ -25,19 +25,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
repo: ${{ fromJson(github.event.inputs.repos) }}
repo: ${{ fromJson(github.event.inputs.repos_json) }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: ${{ matrix.repo }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Read repository list
id: repos
run: |
echo "repos=$(cat ${{ github.event.inputs.repos_file }})" >> $GITHUB_OUTPUT
- name: Update package version in pubspec.yaml
run: |
sed -i 's/\(${package_name}:\s*\)\(.*\)/\1${{ github.event.inputs.new_version }}/' pubspec.yaml
Expand Down

0 comments on commit 7001128

Please sign in to comment.