Skip to content

Commit

Permalink
automation and wit orks
Browse files Browse the repository at this point in the history
  • Loading branch information
frantjc committed Mar 14, 2024
1 parent 103252a commit b705bf3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,17 @@ jobs:
cd ../..
make action
- uses: peter-evans/create-pull-request@v6
env:
COMMIT_MESSAGE: |
Update [.github/action](.github/action) built by GitHub Actions workflow "${{ github.workflow }}" run ${{ github.server_url }}/${{ github.repository }}/actions/${{ github.run_id }} for user ${{ github.actor }} from commit ${{ github.sha }}.
with:
add-paths: |
.github/action
reviewers: |
${{ github.actor }}
title: |
Build .github/action
commit-message: ${{ env.COMMIT_MESSAGE }}
body: ${{ env.COMMIT_MESSAGE }}
Bump .github/action
commit-message: |
Update .github/action built by GitHub Actions workflow "${{ github.workflow }}" for user ${{ github.actor }} from commit ${{ github.sha }}.
body: |
Update [.github/action](.github/action) built by [GitHub Actions workflow "${{ github.workflow }}"](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for user ${{ github.actor }} from commit ${{ github.sha }}.
branch: github-actions/gen/github/action
delete-branch: true
labels: github_actions
11 changes: 5 additions & 6 deletions .github/workflows/build-shims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,18 @@ jobs:
make shim GOARCH=amd64
make shim GOARCH=arm64
- uses: peter-evans/create-pull-request@v6
env:
COMMIT_MESSAGE: |
Update [internal/bin/shim_*](internal/bin) built by GitHub Actions workflow "${{ github.workflow }}" run ${{ github.server_url }}/${{ github.repository }}/actions/${{ github.run_id }} for user ${{ github.actor }} from commit ${{ github.sha }}.
with:
add-paths: |
internal/bin/shim_amd64
internal/bin/shim_arm64
reviewers: |
${{ github.actor }}
title: |
Build internal/bin/shim_*
commit-message: ${{ env.COMMIT_MESSAGE }}
body: ${{ env.COMMIT_MESSAGE }}
Bump internal/bin/shim_*
commit-message: |
Update internal/bin/shim_* built by GitHub Actions workflow "${{ github.workflow }}" for user ${{ github.actor }} from commit ${{ github.sha }}.
body: |
Update [internal/bin/shim_*](internal/bin) built by [GitHub Actions workflow "${{ github.workflow }}"](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for user ${{ github.actor }} from commit ${{ github.sha }}.
branch: github-actions/gen/internal/bin
delete-branch: true
labels: go
2 changes: 1 addition & 1 deletion testdata/actions/dind/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ runs:
args:
- -c
- |
docker run --rm -v /foo:/tmp alpine ls /tmp
docker run --rm -v $GITHUB_WORKSPACE:/tmp alpine ls /tmp

0 comments on commit b705bf3

Please sign in to comment.