Skip to content

Commit

Permalink
Unspecify GitHub Actions' version
Browse files Browse the repository at this point in the history
  • Loading branch information
jihoon-seo committed Feb 9, 2022
1 parent 466a8b4 commit 6555717
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ jobs:
echo Hello, this workflow is allowed to specific OWNERS.
# Apply 'approved' label when OWNER left '/approve' comment
- uses: actions/checkout@v2.4.0
- uses: actions-ecosystem/action-add-labels@v1.1.3
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.github_token }}
labels: |
approved
# AutoMerging if this PR has MERGE_LABELS: approved, lgtm (not wip, hold)
- name: automerge-lgtm-approved
uses: "pascalgn/automerge-action@v0.14.3"
uses: "pascalgn/automerge-action"
with:
args: "--trace"
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-amd64-container-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Checkout source code
uses: actions/checkout@v2.4.0
uses: actions/checkout@v2

- name: Build image
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/make-swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
go-version: ${{ matrix.go-version }}

- name: Checkout source code
uses: actions/checkout@v2.4.0
uses: actions/checkout@v2

- name: Install swag
run: |
go install github.com/swaggo/swag/cmd/swag@latest
go install github.com/swaggo/swag/cmd/swag@v1.7.8
- name: Update Swagger doc
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prow-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# Action according to command (by jpmcb/prow-github-actions)
- name: Action according to command
if: ${{ startsWith(github.event.comment.body, '/') }}
uses: jpmcb/prow-github-actions@v1.1.3
uses: jpmcb/prow-github-actions@v1
with:
prow-commands: '/assign
/unassign
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish-multi-arch-container-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Checkout source code
uses: actions/checkout@v2.4.0
uses: actions/checkout@v2

- name: Prepare tags
id: prep
Expand Down Expand Up @@ -70,39 +70,39 @@ jobs:
echo ${GHCR_TAGS}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1.2.0
uses: docker/setup-qemu-action@v1
with:
platforms: all

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1.6.0
uses: docker/setup-buildx-action@v1

- name: Cache Docker layers
uses: actions/cache@v2.1.7
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to Docker Hub
uses: docker/login-action@v1.12.0
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

# TODO: Create a PAT with `read:packages` and `write:packages` scopes and save it as an Actions secret `CR_PAT`
- name: Login to GitHub Container Registry
uses: docker/login-action@v1.12.0
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}

- name: Build and publish
id: docker_build
uses: docker/build-push-action@v2.9.0
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./
Expand Down

0 comments on commit 6555717

Please sign in to comment.