Skip to content

Commit

Permalink
ci: do not pin container image to sha to avoid update missing
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywang committed Feb 26, 2024
1 parent bc5a06c commit 0be2d95
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/upload_rhel9_ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ on:
jobs:
update_ami:
runs-on: container-runner
container: quay.io/fedora/fedora:41@sha256:2877c7339e710503bf9b0232d2bb190dc7633c70fee459504876c1f33f9f3ea0
container: quay.io/fedora/fedora:39
steps:
- name: Install unzip and git
run: sudo dnf install -y unzip git gh

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Get current date
id: date
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 # v6
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 # v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "test: upload rhel9 ami image - ${{ steps.date.outputs.date }}"
Expand All @@ -64,14 +64,14 @@ jobs:

- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # v3
uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: rebase

- name: Add a comment to trigger test workflow
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
with:
token: ${{ secrets.PAT }}
issue-number: ${{ steps.cpr.outputs.pull-request-number }}
Expand Down

0 comments on commit 0be2d95

Please sign in to comment.