Skip to content

Commit

Permalink
upgrading GHA
Browse files Browse the repository at this point in the history
removes warnings from github
* actions/checkout v2 to v4
* ruby/setup-ruby v1 to v2
* EndBug/add-and-commit v5 to v9
* secrets.GITHUB_TOKEN to github.token
* ruby-version now consistent in `.ruby-version`
  • Loading branch information
makrsmark committed Dec 15, 2023
1 parent ff7dd05 commit fd4fba9
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 50 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/update-faa-dtpp-metafile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,19 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
uses: ruby/setup-ruby@v2
- name: Install dependencies
run: gem install aipp ox
- name: Retrieve d-TPP Metafile from FAA and save output as JSON
run: ruby scripts/faa/faa_dtpp_get_metafile json/faa/dtpp/current_metafile.json
- name: Commit changes
uses: EndBug/add-and-commit@v5
uses: EndBug/add-and-commit@v9
with:
author_name: airframesio
author_email: code@airframes.io
message: "Update FAA d-TPP Metafile - json/faa/dtpp/current_metafile.json"
add: "*.*json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
10 changes: 4 additions & 6 deletions .github/workflows/update-faa-fixes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,19 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
uses: ruby/setup-ruby@v2
- name: Install dependencies
run: gem install activesupport
- name: Retrieve Fixes from FAA and save output as JSON
run: ruby scripts/faa/faa_nfdc_get_fixes json/faa/nfdc/fixes.json
- name: Commit changes
uses: EndBug/add-and-commit@v5
uses: EndBug/add-and-commit@v9
with:
author_name: Airframes.io
author_email: code@airframes.io
message: "Update FAA NFDC Fixes/Waypoints - json/faa/nfdc/fixes.json"
add: "*.*json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
14 changes: 6 additions & 8 deletions .github/workflows/update-faa-tfrs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.8
uses: ruby/setup-ruby@v2
- name: Install activesupport (6.1.4.6)
run: gem install activesupport -v 6.1.4.6
- name: Install dependencies
Expand All @@ -30,11 +28,11 @@ jobs:
- name: Retrieve TFRs and save output as GeoJSON
run: ruby scripts/faa/faa_get_tfrs --format=geojson json/faa/tfrs.geojson
- name: Commit changes
uses: EndBug/add-and-commit@v5
uses: EndBug/add-and-commit@v9
with:
author_name: Kevin Elliott
author_email: kevin@airframes.io
author_name: Airframes.io
author_email: code@airframes.io
message: "Update FAA TFRs - json/faa/tfrs.json and json/faa/tfrs.geojson"
add: "*.*json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
10 changes: 4 additions & 6 deletions .github/workflows/update-noaa-aircraft-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.8
uses: ruby/setup-ruby@v2
- name: Install dependencies
run: gem install ox
- name: Retrieve SIGMETs and save output as JSON
run: ruby scripts/noaa/noaa_nws_awc_get_aircraft_reports json/noaa/aircraft_reports.json
- name: Commit changes
uses: EndBug/add-and-commit@v5
uses: EndBug/add-and-commit@v9
with:
author_name: Kevin Elliott
author_email: kevin@welikeinc.com
message: "Update NOAA Aircraft Reports - json/noaa/aircraft_reports.json"
add: "*.*json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
10 changes: 4 additions & 6 deletions .github/workflows/update-noaa-metars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.8
uses: ruby/setup-ruby@v2
- name: Install dependencies
run: gem install ox
- name: Retrieve METARs and save output as JSON
run: ruby scripts/noaa/noaa_nws_awc_get_metars json/noaa/metars.json
- name: Commit changes
uses: EndBug/add-and-commit@v5
uses: EndBug/add-and-commit@v9
with:
author_name: Airframes.io
author_email: code@airframes.io
message: "Update NOAA METARs - json/noaa/metars.json"
add: "*.*json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
10 changes: 4 additions & 6 deletions .github/workflows/update-noaa-sigmets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,19 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.8
uses: ruby/setup-ruby@v2
- name: Install dependencies
run: gem install ox
- name: Retrieve SIGMETs and save output as JSON
run: ruby scripts/noaa/noaa_nws_awc_get_airsigmets json/noaa/sigmets.json
- name: Commit changes
uses: EndBug/add-and-commit@v5
uses: EndBug/add-and-commit@v9
with:
author_name: Kevin Elliott
author_email: kevin@welikeinc.com
message: "Update NOAA SIGMETs - json/noaa/sigmets.json"
add: "*.*json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
10 changes: 4 additions & 6 deletions .github/workflows/update-noaa-tafs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.8
uses: ruby/setup-ruby@v2
- name: Install dependencies
run: gem install ox
- name: Retrieve SIGMETs and save output as JSON
run: ruby scripts/noaa/noaa_nws_awc_get_tafs json/noaa/tafs.json
- name: Commit changes
uses: EndBug/add-and-commit@v5
uses: EndBug/add-and-commit@v9
with:
author_name: Kevin Elliott
author_email: kevin@welikeinc.com
message: "Update NOAA TAFs - json/noaa/tafs.json"
add: "*.*json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
10 changes: 4 additions & 6 deletions .github/workflows/update-vdl-ground-stations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
uses: ruby/setup-ruby@v2
- name: Convert the CSV source and save output as JSON
run: ruby scripts/convert_vdl2gs_to_json csv/vdl/ground-stations.csv json/vdl/ground-stations.json
- name: Commit changes
uses: EndBug/add-and-commit@v5
uses: EndBug/add-and-commit@v9
with:
author_name: Kevin Elliott
author_email: kevin@welikeinc.com
message: "Update VDL Ground Stations - json/vdl/ground-stations.json"
add: "*.*json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ github.token }}
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.1.2

0 comments on commit fd4fba9

Please sign in to comment.