|
| 1 | +# 💐💚 coder-images: Optimized, and easy Docker images and Coder templates to use in your everyday work! |
| 2 | +# Copyright (c) 2022-2023 Noel <[email protected]> |
| 3 | +# |
| 4 | +# Permission is hereby granted, free of charge, to any person obtaining a copy |
| 5 | +# of this software and associated documentation files (the "Software"), to deal |
| 6 | +# in the Software without restriction, including without limitation the rights |
| 7 | +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 8 | +# copies of the Software, and to permit persons to whom the Software is |
| 9 | +# furnished to do so, subject to the following conditions: |
| 10 | +# |
| 11 | +# The above copyright notice and this permission notice shall be included in all |
| 12 | +# copies or substantial portions of the Software. |
| 13 | +# |
| 14 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 | +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 17 | +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 18 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 19 | +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 20 | +# SOFTWARE. |
| 21 | + |
| 22 | +name: Update Coder Template |
| 23 | +on: |
| 24 | + workflow_dispatch: {} |
| 25 | + push: |
| 26 | + branches: |
| 27 | + - main |
| 28 | + paths: |
| 29 | + - 'template/**' |
| 30 | +jobs: |
| 31 | + update-template: |
| 32 | + runs-on: ubuntu-latest |
| 33 | + steps: |
| 34 | + - name: Checkout repository |
| 35 | + uses: actions/checkout@v3 |
| 36 | + |
| 37 | + - name: Get latest commit hash |
| 38 | + id: commit |
| 39 | + run: echo "hash=$(git rev-parse --short=8 HEAD)" >> $GITHUB_OUTPUT |
| 40 | + |
| 41 | + - name: Update Coder template! |
| 42 | + uses: matifali/update-coder-template@v2 |
| 43 | + with: |
| 44 | + CODER_TEMPLATE_VERSION: "${{stepss.outputs.commit.hash}}" |
| 45 | + CODER_SESSION_TOKEN: "${{secrets.CODER_TOKEN}}" |
| 46 | + CODER_TEMPLATE_NAME: coder |
| 47 | + CODER_TEMPLATE_DIR: ./template |
| 48 | + CODER_URL: "https://coder.floofy.dev" |
0 commit comments