Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger committed Jun 22, 2024
1 parent 0532110 commit bd95e54
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.20.x
cache: false
id: go

- uses: actions/checkout@v4
Expand Down Expand Up @@ -82,13 +83,12 @@ jobs:

# Create pull requests
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.AUTO_UPDATE_KEY }}
with:
path: rules/rules_bzlmodrio_toolchains
base: main
token: ${{ secrets.AUTO_UPDATE_KEY }}
reviewers: pjreiniger
branch: autoupdate_${{ env.NEW_VERSION }}
title: "Auto Update to '${{ env.NEW_VERSION }}'"
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with: { python-version: '3.11' }
- uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with: { python-version: '3.11' }
- uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with: { python-version: '3.11' }
- uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with: { python-version: '3.11' }
- uses: actions/setup-java@v4
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: |
git branch -f main origin/main
if: github.ref != 'refs/heads/main'
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with: { python-version: '3.11' }
- name: Install clang-format
run: |
Expand All @@ -38,9 +38,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Set up Go 1.20.x
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.20.x
cache: false
id: go

- uses: actions/checkout@v4
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: echo "ARCHIVE_NAME=rules/rules_bzlmodrio_toolchains/rules_bzlmodrio_toolchains-${GITHUB_REF_NAME}.tar.gz" >> "$GITHUB_ENV"

- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: "${{ env.ARCHIVE_NAME }}"
Expand Down Expand Up @@ -60,25 +60,23 @@ jobs:

# Create pull requests
- name: Create Gentool Pull Request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.AUTO_UPDATE_KEY }}
with:
path: gentool
base: refactor_dev
token: ${{ secrets.AUTO_UPDATE_KEY }}
reviewers: pjreiniger
branch: autoupdate/rules_bzlmodrio_toolchains_update_${{ env.NEW_VERSION }}
title: "Auto Update rules_bzlmodrio_toolchains module to '${{ env.NEW_VERSION }}'"

- name: Create BCR Pull Request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.AUTO_UPDATE_KEY }}
with:
path: bazel-central-registry
base: bzlmodrio
token: ${{ secrets.AUTO_UPDATE_KEY }}
reviewers: pjreiniger
branch: autoupdate/rules_bzlmodrio_toolchains_update_${{ env.NEW_VERSION }}
title: "Auto Update latest rules_bzlmodrio_toolchains to '${{ env.NEW_VERSION }}'"

0 comments on commit bd95e54

Please sign in to comment.