Skip to content

Commit

Permalink
CI: Pin workflow repos to commit hashes instead of tags
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Feb 3, 2024
1 parent e84ab18 commit 8a1cb91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/dev-build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
target: [uevr]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
token: ${{ secrets.UESDK_PULLER }}
submodules: recursive
Expand All @@ -22,12 +22,8 @@ jobs:
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{matrix.target}}

- name: Upload artifacts
uses: actions/upload-artifact@v2.3.1
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8
with:
name: ${{matrix.target}}
path: ${{github.workspace}}/build/bin/${{matrix.target}}/*
if-no-files-found: error

- name: Set outputs
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
if-no-files-found: error
6 changes: 3 additions & 3 deletions .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
target: [uevr]
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
token: ${{ secrets.UESDK_PULLER }}
submodules: recursive
Expand All @@ -22,7 +22,7 @@ jobs:
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{matrix.target}}

- name: Upload artifacts
uses: actions/upload-artifact@v4.3.0
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8
with:
name: ${{matrix.target}}
path: ${{github.workspace}}/build/bin/${{matrix.target}}/*
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Create Release
if: github.ref == 'refs/heads/master'
uses: ncipollo/release-action@v1.13.0
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5
with:
repo: UEVR-nightly
owner: praydog
Expand Down

0 comments on commit 8a1cb91

Please sign in to comment.